summaryrefslogtreecommitdiffhomepage
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ffluci/fs.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ffluci/fs.lua b/core/src/ffluci/fs.lua
index ffa4cb84f..0ca191be9 100644
--- a/core/src/ffluci/fs.lua
+++ b/core/src/ffluci/fs.lua
@@ -35,9 +35,9 @@ end
-- Checks whether a file exists
function isfile(filename)
- local fp = io.open(path, "r")
- if file then file:close() end
- return file ~= nil
+ local fp = io.open(filename, "r")
+ if fp then fp:close() end
+ return fp ~= nil
end
-- Returns the content of file