diff --git a/htdocs/cron/class/cronjob.class.php b/htdocs/cron/class/cronjob.class.php index b91eb248c34..f7bb85395c8 100644 --- a/htdocs/cron/class/cronjob.class.php +++ b/htdocs/cron/class/cronjob.class.php @@ -1580,13 +1580,13 @@ class Cronjob extends CommonObject } $statusType = 'status4'; - if ($status == 1 && $processing) { + if ($status == self::STATUS_ENABLED && $processing) { $statusType = 'status1'; } - if ($status == 0) { + if ($status == self::STATUS_DISABLED) { $statusType = 'status5'; } - if ($this->lastresult) { + if ($status == self::STATUS_ENABLED && $this->lastresult) { $statusType = 'status8'; }