From: Michael J. Rubinsky Date: Wed, 23 Sep 2009 13:59:50 +0000 (-0400) Subject: fix $registry->call() invocation. (api parameters must be passed as arrays) X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3a4bbc6b57ff72bb1eee62169aefca1c3f54c7b4;p=horde.git fix $registry->call() invocation. (api parameters must be passed as arrays) --- diff --git a/imp/lib/Application.php b/imp/lib/Application.php index b234a1ca3..c9ef44c52 100644 --- a/imp/lib/Application.php +++ b/imp/lib/Application.php @@ -837,7 +837,7 @@ class IMP_Application extends Horde_Registry_Application } catch (Horde_Exception $e) {} try { - $writeable = $registry->call('contacts/sources', true); + $writeable = $registry->call('contacts/sources', array(true)); } catch (Horde_Exception $e) {} $search = IMP_Compose::getAddressSearchParams(); @@ -871,7 +871,7 @@ class IMP_Application extends Horde_Registry_Application $search_fields[$source_count][] = $source; try { - foreach ($registry->call('contacts/fields', $source) as $field) { + foreach ($registry->call('contacts/fields', array($source)) as $field) { if ($field['search']) { $search_fields[$source_count][] = array($field['name'], $field['label'], isset($search['fields'][$source]) && in_array($field['name'], $search['fields'][$source])); }