summaryrefslogtreecommitdiff
path: root/plugins/example_addressbook
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-05-04 11:16:57 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-05-04 11:16:57 +0000
commit9bc4e105b040fcde268cd04a4cca3803f935119a (patch)
tree42f59f579f7b2d0d34b68cf22b01edb7ed2b0155 /plugins/example_addressbook
parentc7f0cc1c2ff649431c2d1aa73872ea43a97c68a2 (diff)
- Fix PHP Warning when autocomplete_addressbooks is not an array
git-svn-id: https://svn.roundcube.net/trunk@3591 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/example_addressbook')
-rw-r--r--plugins/example_addressbook/example_addressbook.php2
1 files changed, 1 insertions, 1 deletions
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);