From 5ea91f1a816ff61ea67418cec741d0f9e935abc7 Mon Sep 17 00:00:00 2001 From: rMalie Date: Tue, 18 Oct 2011 09:59:49 +0000 Subject: [PATCH] // Fix little bug on preactivation (property_exists) --- install-dev/preactivation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-dev/preactivation.php b/install-dev/preactivation.php index 23d976022..5c0a334a9 100644 --- a/install-dev/preactivation.php +++ b/install-dev/preactivation.php @@ -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 ''; }