From: Michael M Slusarz Date: Thu, 26 Aug 2010 15:53:08 +0000 (-0600) Subject: Fix some issues that cropped up with new turba hook code X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d834ec001f399edbd21cada855cf33e84532695c;p=horde.git Fix some issues that cropped up with new turba hook code --- diff --git a/turba/lib/Object.php b/turba/lib/Object.php index c54373b61..91ef61e9a 100644 --- a/turba/lib/Object.php +++ b/turba/lib/Object.php @@ -93,7 +93,7 @@ class Turba_Object { 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) {} } @@ -126,8 +126,8 @@ class Turba_Object { 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]) &&