// Small fix on translation system

This commit is contained in:
fSerny
2012-06-13 08:31:06 +00:00
parent fa2a9fada0
commit b176cfaf4c
+1 -1
View File
@@ -136,7 +136,7 @@ class TranslateCore
$local_path = _PS_MODULE_DIR_.$module.'/';
}
if (!isset($translations_merged[$name]))
if (!isset($name) || !isset($translations_merged[$name]))
{
// Check if translations exists in a current theme
if (Tools::file_exists_cache(_PS_THEME_DIR_.'modules/'.$name.'/translations/'.Context::getContext()->language->iso_code.'.php'))