summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--org-fc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/org-fc.el b/org-fc.el
index 0925d79..65f09dc 100644
--- a/org-fc.el
+++ b/org-fc.el
@@ -284,7 +284,7 @@ Used to calculate the time needed for reviewing a card.")
(defun org-fc-member-p (path)
"Check if PATH is member of one of the `org-fc-directories'."
(setq path (expand-file-name path))
- (and (string= (file-name-extension file) "org")
+ (and (string= (file-name-extension path) "org")
(cl-some
(lambda (dir) (string-prefix-p (expand-file-name dir) path))
org-fc-directories)))