Skip to content
Snippets Groups Projects
Commit 4dcaae75 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use getvar() on exist/exists arguments.

parent a13d8434
No related branches found
No related tags found
No related merge requests found
......@@ -1164,7 +1164,7 @@ function run_ref(sec, fname)
break;
case 'exist':
case 'exists':
if (file_exists(getfname(args[0])) === (args[2].toLowerCase() === 'true')) {
if (file_exists(getfname(getvar(args[0]))) === (getvar(args[2]).toLowerCase() === 'true')) {
handlers.do(args.slice(4));
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment