]> git.p6c8.net - jirafeau/pcanterino.git/blobdiff - lib/functions.php
During admin cleanup of expired files, consider an empty "time" value as an invalid...
[jirafeau/pcanterino.git] / lib / functions.php
index e9dacf1f72349c92dd5d93ce07108f4ef939c0d6..c7ef2680cfa6784b89076798b1f382335599156e 100644 (file)
@@ -862,7 +862,8 @@ function jirafeau_admin_clean()
                     continue;
                 }
                 $p = s2p($l['hash']);
-                if ($l['time'] > 0 && $l['time'] < time() || // expired
+                if (empty($l['time']) || // invalid
+                    $l['time'] > 0 && $l['time'] < time() || // expired
                     !file_exists(VAR_FILES . $p . $l['hash']) || // invalid
                     !file_exists(VAR_FILES . $p . $l['hash'] . '_count')) { // invalid
                     jirafeau_delete_link($node);

patrick-canterino.de