From 279aaa4da364853eaaef4754b229d687261db4e4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 10 Nov 2024 01:53:23 +0100 Subject: [PATCH] Fix color of status --- htdocs/cron/class/cronjob.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'; }