diff --git a/common/script.php b/common/script.php index b27c7977b..b0c26fec0 100644 --- a/common/script.php +++ b/common/script.php @@ -53,7 +53,7 @@ function getMtime($file){ function getMaxMtime($list){ $mtime = array(); foreach($list as $file) $mtime[] = getMtime($file); - return max($mtime); + return count($mtime)?max($mtime):0; } // check