mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#10305 fixed calculate last run pandora db when report never has been executed
This commit is contained in:
parent
30a0e2abe8
commit
c133e77ce0
@ -619,7 +619,7 @@ class Diagnostics extends Wizard
|
||||
$currentTime = time();
|
||||
|
||||
$pandoraDbLastRun = __('Pandora DB has never been executed');
|
||||
if ($dateDbMantenaince !== false) {
|
||||
if ($dateDbMantenaince !== false && empty($dateDbMantenaince) === false) {
|
||||
$difference = ($currentTime - $dateDbMantenaince);
|
||||
$pandoraDbLastRun = human_time_description_raw(
|
||||
$difference,
|
||||
|
Loading…
x
Reference in New Issue
Block a user