From dde0182b16aa93f93b5292e781a1e2b050d34643 Mon Sep 17 00:00:00 2001 From: bn8 Date: Tue, 16 Mar 2010 17:28:32 +0100 Subject: [PATCH] LSattribute::getValue() : Change update detection method --- public_html/includes/class/class.LSattribute.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/public_html/includes/class/class.LSattribute.php b/public_html/includes/class/class.LSattribute.php index 273bbceb..242c2bb1 100644 --- a/public_html/includes/class/class.LSattribute.php +++ b/public_html/includes/class/class.LSattribute.php @@ -140,12 +140,11 @@ class LSattribute { * @retval mixed La valeur de l'attribut */ function getValue() { - $updateData=$this -> getUpdateData(); - if (empty($updateData)) { - return $this -> data; - } + if ($this -> isUpdate()) { + return $this -> getUpdateData(); + { else { - return $updateData; + return $this -> getOldValue(); } }