backport of nathans patch: Check to see if the value is a string before we try to lowercase it, strtolower() doesn't like arrays.

This commit is contained in:
Klaus Leithoff 2008-12-11 13:49:43 +00:00
parent 514caa5d0e
commit e13700dd02

View File

@ -275,7 +275,7 @@
// sometimes it sends 'null' (not null)
if($row == 'null') {
unset($query[$key]);
} elseif (strtolower($row) == 'false') {
} elseif (is_string($row) && strtolower($row) == 'false') {
$row = false;
}
}