diff --git a/tools/encode_files.php b/tools/encode_files.php index 609916c..7ded86c 100644 --- a/tools/encode_files.php +++ b/tools/encode_files.php @@ -53,7 +53,7 @@ function encrypt_directory($dir, $new_dir, $expire, $type) return false; } - while (($file = readdir($handle))) { + while (false !== ($file = readdir($handle))) { if ($file == '.' || $file == '..') { continue; }