thomascube
2010-04-01 1d773d71414316e0b9836a15c35576593427ee21
program/include/rcmail.php
@@ -298,10 +298,11 @@
    // 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 @@
    if ($writeable && !empty($list)) {
      foreach ($list as $idx => $item) {
        if ($item['readonly']) {
     unset($list[$idx]);
          unset($list[$idx]);
        }
      }
    }