[-] BO: improvement of load time

This commit is contained in:
rGaillard committed 2012-03-08 17:07:52 +00:00
1 parent b8aa89c393
commit 89053c7f6f
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -44,9 +44,9 @@ function smartyTranslate($params, &$smarty)
else if ($params['pdf'])
return Translate::getPdfTranslation($params['s']);
if (is_array($lang_array) && key_exists($key, $lang_array))
if ($lang_array != null && isset($lang_array[$key]))
$msg = $lang_array[$key];
elseif (is_array($lang_array) && key_exists(Tools::strtolower($key), $lang_array))
elseif ($lang_array != null && isset($lang_array[Tools::strtolower($key)]))
$msg = $lang_array[Tools::strtolower($key)];
else
$msg = $params['s'];