From 53a71b0f8acc36fcbfbc1b0a51666fa551bc2e56 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Wed, 4 Nov 2009 16:16:53 +0100 Subject: [PATCH] Return the correct attribute value. --- .../Kolab_Server/lib/Horde/Kolab/Server/Object/Attribute/Value.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)); + } } /** -- 2.11.0