From 63b55edb1bfc386c69ef04b6e8e572bb569199d5 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 15 Dec 2006 17:43:08 +0000 Subject: Make T_lang safe --- text.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text.class b/text.class index 2f042e1..60a54fd 100644 --- a/text.class +++ b/text.class @@ -425,7 +425,7 @@ function ET($label, $values = null, $language = null) */ function T_lang() { - return $GLOBALS['it_text']->get_language(); + return isset($GLOBALS['it_text']) ? $GLOBALS['it_text']->get_language() : "de"; } /** -- cgit v1.2.3