adding if defined check for PSM_DEBUG const
This commit is contained in:
parent
3f872e6024
commit
a3cad31754
|
@ -39,7 +39,7 @@ $time = time();
|
||||||
if(psm_get_conf('cron_running') == 1 && ($time - psm_get_conf('cron_running_time') < PSM_CRON_TIMEOUT)) {
|
if(psm_get_conf('cron_running') == 1 && ($time - psm_get_conf('cron_running_time') < PSM_CRON_TIMEOUT)) {
|
||||||
die('Cron is already running. Exiting.');
|
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', 1);
|
||||||
}
|
}
|
||||||
psm_update_conf('cron_running_time', $time);
|
psm_update_conf('cron_running_time', $time);
|
||||||
|
|
Loading…
Reference in New Issue