Commit 6c8f9fae authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Report cron not running when nextrun is null for some cron record


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 0a537e9b
......@@ -240,7 +240,7 @@ function site_statistics($full=false) {
$data['installdate'] = format_date(strtotime(get_config('installation_time')), 'strftimedate');
$data['dbsize'] = db_total_size();
$data['diskusage'] = get_field('site_data', 'value', 'type', 'disk-usage');
$data['cronrunning'] = !record_exists_select('cron', 'nextrun < CURRENT_DATE');
$data['cronrunning'] = !record_exists_select('cron', 'nextrun IS NULL OR nextrun < CURRENT_DATE');
if ($latestversion = get_config('latest_version')) {
$data['latest_version'] = $latestversion;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment