diff options
author | Urban Müller | 2014-04-09 17:42:30 +0200 |
---|---|---|
committer | Urban Müller | 2014-04-09 17:42:30 +0200 |
commit | 467514e98275854572275d681e6e051991585be4 (patch) | |
tree | 425b8f63cf1a2b0205e3bc0e3098603b307d91d1 | |
parent | 9ad25fa3a0325f3702b4118cacc32cef8769ede5 (diff) | |
download | itools-467514e98275854572275d681e6e051991585be4.tar.gz itools-467514e98275854572275d681e6e051991585be4.tar.bz2 itools-467514e98275854572275d681e6e051991585be4.zip |
work even when no global it_html object exists yet (e.g. in auto_prepend of service
-rw-r--r-- | auto_prepend.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |