Skip to content

Commit

Permalink
#10249 Fixed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Jul 31, 2024
1 parent 207c6e4 commit 17b51e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/scheduledTask/ScheduledTaskDAO.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 17b51e3

Please sign in to comment.