summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
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]);
}
}
}