From 467514e98275854572275d681e6e051991585be4 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 9 Apr 2014 17:42:30 +0200 Subject: work even when no global it_html object exists yet (e.g. in auto_prepend of service --- 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 65be69f..150d61c 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'], 'U'), $args); + return call_user_func_array(array($GLOBALS['it_html'] ?: 'it_html', 'U'), $args); } -- cgit v1.2.3