diff --git a/classes/scheduledTask/ScheduledTaskDAO.inc.php b/classes/scheduledTask/ScheduledTaskDAO.inc.php index 6ea61bde46f..47413fc0e44 100644 --- a/classes/scheduledTask/ScheduledTaskDAO.inc.php +++ b/classes/scheduledTask/ScheduledTaskDAO.inc.php @@ -36,7 +36,7 @@ function getLastRunTime($className) { [$className] ); $row = $result->current(); - return $row ? strtotime($this->datetimeFromDB($row->last_run)) : null; + return $row && $row->last_run ? strtotime($this->datetimeFromDB($row->last_run)) : 0; } /**