From 104544f25e2edff3be419e9f3001cd1b52fe25de Mon Sep 17 00:00:00 2001 From: sparkyx Date: Tue, 3 May 2022 21:33:21 +0200 Subject: [PATCH] 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;$ivalue);$i++) { if ($this->selected==$this->value[$i]['value'] )