summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2014-04-09 17:42:30 +0200
committerUrban Müller2014-04-09 17:42:30 +0200
commit467514e98275854572275d681e6e051991585be4 (patch)
tree425b8f63cf1a2b0205e3bc0e3098603b307d91d1
parent9ad25fa3a0325f3702b4118cacc32cef8769ede5 (diff)
downloaditools-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.php2
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);
}