- Fix 'sql' identifier for addressbook handling (#1488013)

release-0.6
alecpl 14 years ago
parent 08b796f83c
commit f03d89e493

@ -386,6 +386,10 @@ class rcmail
$ldap_config = (array)$this->config->get('ldap_public'); $ldap_config = (array)$this->config->get('ldap_public');
$abook_type = strtolower($this->config->get('address_book_type')); $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 // use existing instance
if (isset($this->address_books[$id]) && is_a($this->address_books[$id], 'rcube_addressbook') && (!$writeable || !$this->address_books[$id]->readonly)) { 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]; $contacts = $this->address_books[$id];

Loading…
Cancel
Save