// Fix little bug on preactivation (property_exists)
This commit is contained in:
@@ -5,9 +5,9 @@
|
|||||||
$_GET['language'] = 0;
|
$_GET['language'] = 0;
|
||||||
function getPreinstallXmlLang($object, $field)
|
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)}));
|
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 str_replace(array('!|', '|!'), array('<', '>'), trim($object->{$field.'_1'}));
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user