summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-03-31 15:23:22 +0000
committerthomascube <thomas@roundcube.net>2010-03-31 15:23:22 +0000
commitc0297f4172da47a20350d597176ecafee47c97bb (patch)
treefc7ce0fc563577c996654d1e123ead119a5a2245 /program/include/rcmail.php
parent3baa72a62fc69dda8306674da6d150efbf2cd55b (diff)
Asynchronously expand contact groups + skip count queries in autocompletion mode + check for the existance of contactgroups table
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 77ebb28b6..f1e9d3fc9 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -298,10 +298,11 @@ class rcmail
// We are using the DB address book
if ($abook_type != 'ldap') {
+ $contacts = new rcube_contacts($this->db, null);
$list['0'] = array(
'id' => 0,
'name' => rcube_label('personaladrbook'),
- 'groups' => true,
+ 'groups' => $contacts->groups,
'readonly' => false,
'autocomplete' => in_array('sql', $autocomplete)
);
@@ -324,7 +325,7 @@ class rcmail
if ($writeable && !empty($list)) {
foreach ($list as $idx => $item) {
if ($item['readonly']) {
- unset($list[$idx]);
+ unset($list[$idx]);
}
}
}