From a3cad3175484e208a557aea0dcbe02d47fc14a2e Mon Sep 17 00:00:00 2001 From: Pepijn Over Date: Tue, 15 Apr 2014 22:05:50 +0200 Subject: [PATCH] adding if defined check for PSM_DEBUG const --- cron/status.cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);