Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
cc636e1a
Commit
cc636e1a
authored
Nov 14, 2015
by
Till Brehm
Browse files
Fixed PHP warning when no IDN filters are set for field in lists.
parent
50bb597a
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/listform.inc.php
View file @
cc636e1a
...
...
@@ -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
;
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment