Fix calling contacts api from kronolith's sourceselect pref
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 19 Oct 2009 15:15:45 +0000 (11:15 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 19 Oct 2009 15:16:31 +0000 (11:16 -0400)
kronolith/templates/prefs/sourceselect.inc

index afd19f3..828a4ba 100644 (file)
@@ -7,7 +7,7 @@ if ($registry->hasMethod('contacts/sources')) {
         $readable = null;
     }
     try {
-        $writeable = $registry->call('contacts/sources', true);
+        $writeable = $registry->call('contacts/sources', array(true));
     } catch (Horde_Exception $e) {
         $writeable = null;
     }
@@ -69,7 +69,7 @@ if ($registry->hasMethod('contacts/sources')) {
     if (is_array($readable)) {
         foreach (array_keys($readable) as $source) {
             try {
-                $search_fields[$source] = $registry->call('contacts/fields', $source);
+                $search_fields[$source] = $registry->call('contacts/fields', array($source));
             } catch (Horde_Exception $e) {}
         }
     }