mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 11:23:54 +01:00
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
|
// Expand lists
|
||||||
foreach($query as $key => $row) {
|
foreach($query as $key => &$row) {
|
||||||
if(strpos($row, ',')) {
|
if(strpos($row, ',')) {
|
||||||
$query[$key] = explode(',', $row);
|
$query[$key] = explode(',', $row);
|
||||||
}
|
}
|
||||||
@ -275,6 +275,8 @@
|
|||||||
// sometimes it sends 'null' (not null)
|
// sometimes it sends 'null' (not null)
|
||||||
if($row == 'null') {
|
if($row == 'null') {
|
||||||
unset($query[$key]);
|
unset($query[$key]);
|
||||||
|
} elseif (strtolower($row) == 'false') {
|
||||||
|
$row = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$query['search'] = $value;
|
$query['search'] = $value;
|
||||||
|
Loading…
Reference in New Issue
Block a user