summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2014-04-10 09:08:37 +0200
committerChristian Schneider2014-04-10 09:08:37 +0200
commit6f1bc7398ff868a6e7e55716e9b32eaf496f2559 (patch)
treee40d5af428b3ae1ecd26ac22f63248189488230f
parent467514e98275854572275d681e6e051991585be4 (diff)
downloaditools-6f1bc7398ff868a6e7e55716e9b32eaf496f2559.tar.gz
itools-6f1bc7398ff868a6e7e55716e9b32eaf496f2559.tar.bz2
itools-6f1bc7398ff868a6e7e55716e9b32eaf496f2559.zip
Do not accept true/false as object (used to disable it_html instantiation)
-rw-r--r--auto_prepend.php2
1 files changed, 1 insertions, 1 deletions
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);
}