File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -199,13 +199,15 @@ public function getSearchSQL($sql_where = '')
199199 $ searchval = $ _SESSION ['search ' ][$ list_name ][$ search_prefix .$ field ];
200200 // IDN
201201 if ($ searchval != '' ){
202- foreach ($ i ['filters ' ] as $ searchval_filter ) {
203- if ($ searchval_filter ['event ' ] == 'SHOW ' ) {
204- switch ($ searchval_filter ['type ' ]) {
205- case 'IDNTOUTF8 ' :
206- $ searchval = $ app ->functions ->idn_encode ($ searchval );
207- //echo $searchval;
208- break ;
202+ if (is_array ($ i ['filters ' ])) {
203+ foreach ($ i ['filters ' ] as $ searchval_filter ) {
204+ if ($ searchval_filter ['event ' ] == 'SHOW ' ) {
205+ switch ($ searchval_filter ['type ' ]) {
206+ case 'IDNTOUTF8 ' :
207+ $ searchval = $ app ->functions ->idn_encode ($ searchval );
208+ //echo $searchval;
209+ break ;
210+ }
209211 }
210212 }
211213 }
You can’t perform that action at this time.
0 commit comments