From 9bc4e105b040fcde268cd04a4cca3803f935119a Mon Sep 17 00:00:00 2001 From: alec Date: Tue, 4 May 2010 11:16:57 +0000 Subject: - Fix PHP Warning when autocomplete_addressbooks is not an array git-svn-id: https://svn.roundcube.net/trunk@3591 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/example_addressbook/example_addressbook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/example_addressbook') diff --git a/plugins/example_addressbook/example_addressbook.php b/plugins/example_addressbook/example_addressbook.php index 58f187c0c..108c0aebb 100644 --- a/plugins/example_addressbook/example_addressbook.php +++ b/plugins/example_addressbook/example_addressbook.php @@ -16,7 +16,7 @@ class example_addressbook extends rcube_plugin // use this address book for autocompletion queries // (maybe this should be configurable by the user?) $config = rcmail::get_instance()->config; - $sources = $config->get('autocomplete_addressbooks', array('sql')); + $sources = (array) $config->get('autocomplete_addressbooks', array('sql')); if (!in_array($this->abook_id, $sources)) { $sources[] = $this->abook_id; $config->set('autocomplete_addressbooks', $sources); -- cgit v1.2.3