if (isset($this->attributes[$attribute])) {
try {
return Horde::callHook('decode_attribute', array($attribute, $this->attributes[$attribute], $this), 'turba');
- } catch (Horde_Exception_HookNotSet $e) {}
+ } catch (Horde_Exception_HookNotSet $e) {
} catch (Turba_Exception $e) {}
}
function setValue($attribute, $value)
{
try {
- $value = Horde::callHook('encode_attribute', array($attribute, $value, $this->attributes[$attribute], $this), 'turba');
- } catch (Horde_Exception_HookNotSet $e) {}
+ $value = Horde::callHook('encode_attribute', array($attribute, $value, isset($this->attributes[$attribute]) ? $this->attributes[$attribute] : null, $this), 'turba');
+ } catch (Horde_Exception_HookNotSet $e) {
} catch (Turba_Exception $e) {}
if (isset($this->driver->map[$attribute]) &&