From 6f1bc7398ff868a6e7e55716e9b32eaf496f2559 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 10 Apr 2014 09:08:37 +0200 Subject: Do not accept true/false as object (used to disable it_html instantiation) --- auto_prepend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_prepend.php b/auto_prepend.php index 150d61c..65d4901 100644 --- a/auto_prepend.php +++ b/auto_prepend.php @@ -155,7 +155,7 @@ function T_exists($label, $language = null) function U(/* ... */) { $args = func_get_args(); - return call_user_func_array(array($GLOBALS['it_html'] ?: 'it_html', 'U'), $args); + return call_user_func_array(array(is_object($o = $GLOBALS['it_html']) ? $o : 'it_html', 'U'), $args); } -- cgit v1.2.3