From 5d58ddf451b06d719bc70181c18144bd41dce262 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Tue, 7 Apr 2009 18:21:18 +0200 Subject: [PATCH] Ignore it if attributes are not supported by the server. --- framework/Kolab_Server/lib/Horde/Kolab/Server.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/framework/Kolab_Server/lib/Horde/Kolab/Server.php b/framework/Kolab_Server/lib/Horde/Kolab/Server.php index 8d5398081..a90fd4855 100644 --- a/framework/Kolab_Server/lib/Horde/Kolab/Server.php +++ b/framework/Kolab_Server/lib/Horde/Kolab/Server.php @@ -435,7 +435,15 @@ abstract class Horde_Kolab_Server $required = array_merge($required, $info['must']); } foreach ($defined as $attribute) { - $attrs[$attribute] = $this->getAttributeSchema($attribute); + try { + $attrs[$attribute] = $this->getAttributeSchema($attribute); + } catch (Horde_Kolab_Server_Exception $e) { + /** + * If the server considers the attribute to be + * invalid we mark it. + */ + $attrs[$attribute] = array('invalid' => true); + } } foreach ($required as $attribute) { $attrs[$attribute]['required'] = true; -- 2.11.0