From f03d89e49399f659975e158a8505fba69ef8ae91 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Fri, 29 Jul 2011 02:48:09 -0400
Subject: [PATCH] - Fix 'sql' identifier for addressbook handling (#1488013)
---
program/include/rcmail.php | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 396106e..33956c3 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -386,6 +386,10 @@
$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];
--
Gitblit v1.9.1