diff --git a/etemplate/inc/class.ajax_select_widget.inc.php b/etemplate/inc/class.ajax_select_widget.inc.php index 801616b42e..5e31f9fbf2 100644 --- a/etemplate/inc/class.ajax_select_widget.inc.php +++ b/etemplate/inc/class.ajax_select_widget.inc.php @@ -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;