From: Gunnar Wrobel
Date: Wed, 4 Nov 2009 15:16:53 +0000 (+0100) Subject: Return the correct attribute value. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=53a71b0f8acc36fcbfbc1b0a51666fa551bc2e56;p=horde.git Return the correct attribute value. --- diff --git a/framework/Kolab_Server/lib/Horde/Kolab/Server/Object/Attribute/Value.php b/framework/Kolab_Server/lib/Horde/Kolab/Server/Object/Attribute/Value.php index 0c4a76fa0..111c0fc86 100644 --- a/framework/Kolab_Server/lib/Horde/Kolab/Server/Object/Attribute/Value.php +++ b/framework/Kolab_Server/lib/Horde/Kolab/Server/Object/Attribute/Value.php @@ -37,7 +37,12 @@ extends Horde_Kolab_Server_Object_Attribute_Base */ public function value() { - return $this->attribute->value(); + $internal = $this->attribute->value(); + if (isset($internal[$this->name])) { + return $internal[$this->name]; + } else { + throw new Horde_Kolab_Server_Exception(sprintf('Missing value %s!', $this->name)); + } } /**