[FIX] Do not mark cron disabled, just notify

This commit is contained in:
Sebastian Grewe 2014-01-01 08:56:46 +01:00
parent 4e4ebb3d90
commit bf86cc6c25

View File

@ -29,7 +29,7 @@ require_once('shared.inc.php');
$affected_rows = $share->purgeArchive();
if ($affected_rows === false) {
$log->logError("Failed to delete archived shares, not critical but should be checked: " . $share->getCronError());
$monitoring->endCronjob($cron_name, 'E0008', 1, true);
$monitoring->endCronjob($cron_name, 'E0008', 0, false, false);
} else {
$log->logDebug("Deleted $affected_rows archived shares this run");
}