noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 03/24: ISelect->display fails if this->value


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 03/24: ISelect->display fails if this->value if null
Date: Tue, 12 Jul 2022 07:05:19 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 104544f25e2edff3be419e9f3001cd1b52fe25de
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Tue May 3 21:33:21 2022 +0200

    ISelect->display fails if this->value if null
---
 include/lib/iselect.class.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/lib/iselect.class.php b/include/lib/iselect.class.php
index b1aa17dc5..fa516971e 100644
--- a/include/lib/iselect.class.php
+++ b/include/lib/iselect.class.php
@@ -85,6 +85,9 @@ class ISelect extends HtmlInput
     public function display()
     {
         $r="";
+        if ($this->value == null) {
+            $this->value=array();
+        }
         for ( $i=0;$i<sizeof($this->value);$i++)
         {
             if ($this->selected==$this->value[$i]['value'] )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]