Skip to content

Commit fcdceac

Browse files
committed
In pql_format_bool(), break if called with an array.
1 parent a79b398 commit fcdceac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/pql_formating.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,9 @@ function pql_format_urls(&$string) {
918918

919919
// {{{ pql_format_bool(string)
920920
function pql_format_bool(&$value) {
921+
if(is_array($value))
922+
return;
923+
921924
if(preg_match('/^true$/i', $value)) {
922925
settype($value, "boolean");
923926
$value = '1';

0 commit comments

Comments
 (0)