Ignore it if attributes are not supported by the server.
authorGunnar Wrobel <p@rdus.de>
Tue, 7 Apr 2009 16:21:18 +0000 (18:21 +0200)
committerGunnar Wrobel <p@rdus.de>
Tue, 7 Apr 2009 16:21:18 +0000 (18:21 +0200)
framework/Kolab_Server/lib/Horde/Kolab/Server.php

index 8d53980..a90fd48 100644 (file)
@@ -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;