summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-07-29 06:48:09 +0000
committeralecpl <alec@alec.pl>2011-07-29 06:48:09 +0000
commitf03d89e49399f659975e158a8505fba69ef8ae91 (patch)
treea877be76c543a3a39b0858eb968ecac352ec88ea /program/include
parent08b796f83cdfc650d47c6a9ebca3b04fef80cea5 (diff)
- Fix 'sql' identifier for addressbook handling (#1488013)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcmail.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 396106e42..33956c3eb 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -386,6 +386,10 @@ class rcmail
$ldap_config = (array)$this->config->get('ldap_public');
$abook_type = strtolower($this->config->get('address_book_type'));
+ // 'sql' is the alias for '0' used by autocomplete
+ if ($id == 'sql')
+ $id = '0';
+
// use existing instance
if (isset($this->address_books[$id]) && is_a($this->address_books[$id], 'rcube_addressbook') && (!$writeable || !$this->address_books[$id]->readonly)) {
$contacts = $this->address_books[$id];