mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
packport of nathans patch: Add special handling for query values of 'false' (the string) to convert them to false (boolean)
This commit is contained in:
parent
13dd934ddd
commit
9d6f449bbd
@ -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