From 66bb41b0650f919ce7e1555e77b640f1be617c97 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 9 Dec 2008 16:02:01 +0000 Subject: [PATCH] Check to see if the value is a string before we try to lowercase it, strtolower() doesn't like arrays. --- etemplate/inc/class.ajax_select_widget.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.ajax_select_widget.inc.php b/etemplate/inc/class.ajax_select_widget.inc.php index 5e31f9fbf2..9b6e1fb822 100644 --- a/etemplate/inc/class.ajax_select_widget.inc.php +++ b/etemplate/inc/class.ajax_select_widget.inc.php @@ -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; } }