forked from extern/egroupware
Add special handling for query values of 'false' (the string) to convert them to false (boolean)
This commit is contained in:
parent
e025a14a08
commit
dd749ffa6e
@ -267,7 +267,7 @@
|
||||
}
|
||||
|
||||
// Expand lists
|
||||
foreach($query as $key => $row) {
|
||||
foreach($query as $key => &$row) {
|
||||
if(strpos($row, ',')) {
|
||||
$query[$key] = explode(',', $row);
|
||||
}
|
||||
@ -275,6 +275,8 @@
|
||||
// sometimes it sends 'null' (not null)
|
||||
if($row == 'null') {
|
||||
unset($query[$key]);
|
||||
} elseif (strtolower($row) == 'false') {
|
||||
$row = false;
|
||||
}
|
||||
}
|
||||
$query['search'] = $value;
|
||||
|
Loading…
Reference in New Issue
Block a user