LSattribute::getValue() : Change update detection method

This commit is contained in:
Benjamin Renard 2010-03-16 17:28:32 +01:00
parent 418d7f899e
commit dde0182b16

View file

@ -140,12 +140,11 @@ class LSattribute {
* @retval mixed La valeur de l'attribut * @retval mixed La valeur de l'attribut
*/ */
function getValue() { function getValue() {
$updateData=$this -> getUpdateData(); if ($this -> isUpdate()) {
if (empty($updateData)) { return $this -> getUpdateData();
return $this -> data; {
}
else { else {
return $updateData; return $this -> getOldValue();
} }
} }