diff --git a/cron/status.cron.php b/cron/status.cron.php index 5145b4b3..2ba3ecc0 100644 --- a/cron/status.cron.php +++ b/cron/status.cron.php @@ -39,7 +39,7 @@ $time = time(); if(psm_get_conf('cron_running') == 1 && ($time - psm_get_conf('cron_running_time') < PSM_CRON_TIMEOUT)) { die('Cron is already running. Exiting.'); } -if(!PSM_DEBUG) { +if(!defined('PSM_DEBUG') || !PSM_DEBUG) { psm_update_conf('cron_running', 1); } psm_update_conf('cron_running_time', $time);