From: Gunnar Wrobel Date: Tue, 7 Apr 2009 16:21:18 +0000 (+0200) Subject: Ignore it if attributes are not supported by the server. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5d58ddf451b06d719bc70181c18144bd41dce262;p=horde.git Ignore it if attributes are not supported by the server. --- 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;