diff --git a/search2/bin/cronCleanup.php b/search2/bin/cronCleanup.php index e21ea2a..d72c449 100644 --- a/search2/bin/cronCleanup.php +++ b/search2/bin/cronCleanup.php @@ -49,6 +49,8 @@ function cleanupTempDirectory($dir, $force = false) { $dir = str_replace('\\','/', $dir); + if (strpos($dir, '/tmp') === false) return; + $dh = opendir($dir); while (($name = readdir($dh)) !== false) {