From 5036fed906804209346fdf11f682a43d715e6cea Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 10 Apr 2014 11:50:47 +0200 Subject: only use global object if it is a it_html --- auto_prepend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auto_prepend.php') 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); } -- cgit v1.2.3