File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -602,7 +602,7 @@ private function getMyGroups($userID) {
602
602
}
603
603
604
604
public function equals ($ value ): bool {
605
- $ value = html_entity_decode ($ value );
605
+ $ value = html_entity_decode ($ value ?? '' );
606
606
$ itemtype = $ this ->question ->fields ['itemtype ' ];
607
607
$ dropdown = new $ itemtype ();
608
608
if ($ dropdown ->isNewId ($ this ->value )) {
@@ -624,7 +624,7 @@ public function notEquals($value): bool {
624
624
}
625
625
626
626
public function greaterThan ($ value ): bool {
627
- $ value = html_entity_decode ($ value );
627
+ $ value = html_entity_decode ($ value ?? '' );
628
628
$ itemtype = $ this ->question ->fields ['itemtype ' ];
629
629
$ dropdown = new $ itemtype ();
630
630
if (!$ dropdown ->getFromDB ($ this ->value )) {
@@ -643,7 +643,7 @@ public function lessThan($value): bool {
643
643
}
644
644
645
645
public function regex ($ value ): bool {
646
- $ value = html_entity_decode ($ value );
646
+ $ value = html_entity_decode ($ value ?? '' );
647
647
$ itemtype = $ this ->question ->fields ['itemtype ' ];
648
648
$ dropdown = new $ itemtype ();
649
649
if (!$ dropdown ->getFromDB ($ this ->value )) {
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ public function buildParams($rand = null) {
160
160
}
161
161
162
162
public function equals ($ value ): bool {
163
- $ value = html_entity_decode ($ value );
163
+ $ value = html_entity_decode ($ value ?? '' );
164
164
$ itemtype = $ this ->getSubItemtype ();
165
165
$ item = new $ itemtype ();
166
166
if ($ item ->isNewId ($ this ->value )) {
@@ -177,7 +177,7 @@ public function notEquals($value): bool {
177
177
}
178
178
179
179
public function greaterThan ($ value ): bool {
180
- $ value = html_entity_decode ($ value );
180
+ $ value = html_entity_decode ($ value ?? '' );
181
181
$ itemtype = $ this ->getSubItemtype ();
182
182
$ item = new $ itemtype ();
183
183
if (!$ item ->getFromDB ($ this ->value )) {
You can’t perform that action at this time.
0 commit comments