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
*/
function getValue() {
$updateData=$this -> getUpdateData();
if (empty($updateData)) {
return $this -> data;
}
if ($this -> isUpdate()) {
return $this -> getUpdateData();
{
else {
return $updateData;
return $this -> getOldValue();
}
}