From 8c88036eed4962efac3b55f7e9fdd999acedf555 Mon Sep 17 00:00:00 2001 From: Alex Kinhoom <568483846@qq.com> Date: Fri, 6 Nov 2020 12:37:52 +0800 Subject: [PATCH] Update encode_files.php Fix bug (Exits when the dir is 0(FALSE)) --- tools/encode_files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }