Add special handling for query values of 'false' (the string) to convert them to false (boolean)

This commit is contained in:
Nathan Gray 2008-12-05 21:27:12 +00:00
parent e025a14a08
commit dd749ffa6e

View File

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