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:
Klaus Leithoff 2008-12-09 14:12:48 +00:00
parent 13dd934ddd
commit 9d6f449bbd

View File

@ -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;