From 17b51e3afaeb954d38d3d36aa2db5a71f9e37dca Mon Sep 17 00:00:00 2001 From: Jonas Raoni Soares da Silva Date: Wed, 31 Jul 2024 11:35:25 +0300 Subject: [PATCH] pkp/pkp-lib#10249 Fixed warning --- classes/scheduledTask/ScheduledTaskDAO.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /**