From 0c16761f483ab16552d4e03fdf4e3bb255ffb47b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 2 Sep 2018 10:23:00 +0200 Subject: [PATCH] Update myobject.class.php --- .../template/class/myobject.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/modulebuilder/template/class/myobject.class.php b/htdocs/modulebuilder/template/class/myobject.class.php index 78834332613..21e8df59efc 100644 --- a/htdocs/modulebuilder/template/class/myobject.class.php +++ b/htdocs/modulebuilder/template/class/myobject.class.php @@ -390,31 +390,31 @@ class MyObject extends CommonObject { return $this->labelstatus[$status]; } - if ($mode == 1) + elseif ($mode == 1) { return $this->labelstatus[$status]; } - if ($mode == 2) + elseif ($mode == 2) { if ($status == 1) return img_picto($this->labelstatus[$status],'statut4').' '.$this->labelstatus[$status]; if ($status == 0) return img_picto($this->labelstatus[$status],'statut5').' '.$this->labelstatus[$status]; } - if ($mode == 3) + elseif ($mode == 3) { if ($status == 1) return img_picto($this->labelstatus[$status],'statut4'); if ($status == 0) return img_picto($this->labelstatus[$status],'statut5'); } - if ($mode == 4) + elseif ($mode == 4) { if ($status == 1) return img_picto($this->labelstatus[$status],'statut4').' '.$this->labelstatus[$status]; if ($status == 0) return img_picto($this->labelstatus[$status],'statut5').' '.$this->labelstatus[$status]; } - if ($mode == 5) + elseif ($mode == 5) { if ($status == 1) return $this->labelstatus[$status].' '.img_picto($this->labelstatus[$status],'statut4'); if ($status == 0) return $this->labelstatus[$status].' '.img_picto($this->labelstatus[$status],'statut5'); } - if ($mode == 6) + elseif ($mode == 6) { if ($status == 1) return $this->labelstatus[$status].' '.img_picto($this->labelstatus[$status],'statut4'); if ($status == 0) return $this->labelstatus[$status].' '.img_picto($this->labelstatus[$status],'statut5'); @@ -531,4 +531,4 @@ class MyObjectLine // @var mixed Sample line property 2 public $prop2; } -*/ \ No newline at end of file +*/