IMPROVEMENT for the new option '+force' in the cron file

This commit is contained in:
Julio Cesar Laura
2014-01-10 11:26:08 -04:00
parent 66cc087abd
commit 9325376cdd

View File

@@ -62,6 +62,7 @@ if (file_exists(PATH_DATA . "cron")) {
for ($i = 1; $i <= count($argv) - 1; $i++) { for ($i = 1; $i <= count($argv) - 1; $i++) {
if (strpos($argv[$i], "+force") !== false) { if (strpos($argv[$i], "+force") !== false) {
$force = true; $force = true;
unset($argv[$i]);
break; break;
} }
} }