summaryrefslogtreecommitdiff
path: root/auto_prepend.php
diff options
context:
space:
mode:
authorUrban Müller2014-04-10 11:50:47 +0200
committerUrban Müller2014-04-10 11:50:47 +0200
commit5036fed906804209346fdf11f682a43d715e6cea (patch)
treeca79ceefa6a85567e77c9c37eb37dde4531bf480 /auto_prepend.php
parent6f1bc7398ff868a6e7e55716e9b32eaf496f2559 (diff)
downloaditools-5036fed906804209346fdf11f682a43d715e6cea.tar.gz
itools-5036fed906804209346fdf11f682a43d715e6cea.tar.bz2
itools-5036fed906804209346fdf11f682a43d715e6cea.zip
only use global object if it is a it_html
Diffstat (limited to 'auto_prepend.php')
-rw-r--r--auto_prepend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_prepend.php b/auto_prepend.php
index 65d4901..bb23309 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(is_object($o = $GLOBALS['it_html']) ? $o : 'it_html', 'U'), $args);
+ return call_user_func_array(array(is_a($o = $GLOBALS['it_html'], 'it_html') ? $o : 'it_html', 'U'), $args);
}