Fix syntax errors
authorChuck Hagenbuch <chuck@horde.org>
Sun, 3 Oct 2010 18:29:02 +0000 (14:29 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Sun, 3 Oct 2010 18:29:22 +0000 (14:29 -0400)
turba/lib/Driver/Imsp.php
turba/lib/Driver/Kolab/Wrapper/Old.php

index 299dbc0..f1d1b4a 100644 (file)
@@ -307,7 +307,7 @@ class Turba_Driver_Imsp extends Turba_Driver
             } catch (Turba_Exception $e) {}
         }
 
-        unset($attributes['__type'], unset($attributes['fullname']);
+        unset($attributes['__type'], $attributes['fullname']);
         if (!$this->params['contact_ownership']) {
             unset($attributes['__owner']);
         }
index fad5de6..c24afed 100644 (file)
@@ -298,7 +298,7 @@ class Turba_Driver_Kolab_Wrapper_Old extends Turba_Driver_Kolab_Wrapper
             $contact = $this->_buildContact($result);
             $card = array();
             foreach ($fields as $field) {
-                $card[$field] = isset($contact[$field]
+                $card[$field] = isset($contact[$field])
                     ? $contact[$field]
                     : '';
             }