// Fix little bug on preactivation (property_exists)

This commit is contained in:
rMalie
2011-10-18 09:59:49 +00:00
parent 91af5d6d36
commit 5ea91f1a81
+2 -2
View File
@@ -5,9 +5,9 @@
$_GET['language'] = 0;
function getPreinstallXmlLang($object, $field)
{
if (ToolsCore::property_exists($object, $field.'_'.((int)($_GET['language'])+1)))
if (property_exists($object, $field.'_'.((int)($_GET['language'])+1)))
return str_replace(array('!|', '|!'), array('<', '>'), trim($object->{$field.'_'.((int)($_GET['language'])+1)}));
if (ToolsCore::property_exists($object, $field.'_1'))
if (property_exists($object, $field.'_1'))
return str_replace(array('!|', '|!'), array('<', '>'), trim($object->{$field.'_1'}));
return '';
}