From fa03716881f26e01e7ec6511700e60de8a74b28a Mon Sep 17 00:00:00 2001 From: Karl Hepworth Date: Mon, 18 Feb 2019 10:37:18 +1100 Subject: [PATCH] Fix references to cron timestamp to reflect array returned in audit. --- src/Audit/CronLast.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Audit/CronLast.php b/src/Audit/CronLast.php index 3faecd6..fbc9475 100644 --- a/src/Audit/CronLast.php +++ b/src/Audit/CronLast.php @@ -25,9 +25,9 @@ public function audit(Sandbox $sandbox) { return FALSE; } - $sandbox->setParameter('cron_last', date('l jS \of F Y h:i:s A', $last)); + $sandbox->setParameter('cron_last', date('l jS \of F Y h:i:s A', $last['system.cron_last'])); - $time_diff = time() - $last; + $time_diff = time() - $last['system.cron_last']; // Fail if cron hasn't run in the last 24 hours. if ($time_diff > 86400) { return FALSE;