--- Object.php 2012-03-31 20:31:30.037690180 +0200 +++ Object.php.btu 2012-03-31 20:18:57.925665546 +0200 @@ -90,12 +90,6 @@ */ public function getValue($attribute) { - if (isset($this->attributes[$attribute]) && - Horde::hookExists('decode_attribute', 'turba')) { - try { - return Horde::callHook('decode_attribute', array($attribute, $this->attributes[$attribute], $this), 'turba'); - } catch (Turba_Exception $e) {} - } if (isset($this->driver->map[$attribute]) && is_array($this->driver->map[$attribute])) { $args = array(); @@ -116,8 +110,14 @@ ) ); } - + if (isset($this->attributes[$attribute]) && + Horde::hookExists('decode_attribute', 'turba')) { + try { + return Horde::callHook('decode_attribute', array($attribute, $this->attributes[$attribute], $this), 'turba'); + } catch (Turba_Exception $e) {} + } return $this->attributes[$attribute]; + } /**