Commit cc636e1a authored by Till Brehm's avatar Till Brehm
Browse files

Fixed PHP warning when no IDN filters are set for field in lists.

parent 50bb597a
......@@ -199,13 +199,15 @@ class listform {
$searchval = $_SESSION['search'][$list_name][$search_prefix.$field];
// IDN
if($searchval != ''){
foreach($i['filters'] as $searchval_filter) {
if($searchval_filter['event'] == 'SHOW') {
switch ($searchval_filter['type']) {
case 'IDNTOUTF8':
$searchval = $app->functions->idn_encode($searchval);
//echo $searchval;
break;
if(is_array($i['filters'])) {
foreach($i['filters'] as $searchval_filter) {
if($searchval_filter['event'] == 'SHOW') {
switch ($searchval_filter['type']) {
case 'IDNTOUTF8':
$searchval = $app->functions->idn_encode($searchval);
//echo $searchval;
break;
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment