From 88021eb9a498f3713d3c13a72e5dc1a52b38dd48 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sun, 22 Dec 2013 09:08:25 +0100 Subject: [PATCH] [FIX] Fix cleanup with 0 matching shares --- cronjobs/archive_cleanup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cronjobs/archive_cleanup.php b/cronjobs/archive_cleanup.php index 4d7b011b..687d41c7 100755 --- a/cronjobs/archive_cleanup.php +++ b/cronjobs/archive_cleanup.php @@ -26,7 +26,8 @@ chdir(dirname(__FILE__)); require_once('shared.inc.php'); // If we don't keep archives, delete some now to release disk space -if (!$affected_rows = $share->purgeArchive()) { +$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); } else {