diff --git a/trunk/includes/functions.php b/trunk/includes/functions.php index 43700c0f..e0937233 100644 --- a/trunk/includes/functions.php +++ b/trunk/includes/functions.php @@ -431,6 +431,8 @@ function LSdebugDefined() { function tr($msg,$key=null) { $val = $GLOBALS['Smarty']->get_template_vars($msg); + if (!$val) + $val=$msg; if (is_array($val)) { echo __($val[$key]); }