adding if defined check for PSM_DEBUG const

This commit is contained in:
Pepijn Over 2014-04-15 22:05:50 +02:00
parent 3f872e6024
commit a3cad31754
1 changed files with 1 additions and 1 deletions

View File

@ -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);