diff options
author | thomascube <thomas@roundcube.net> | 2008-09-04 10:05:35 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-09-04 10:05:35 +0000 |
commit | e1eafd03a2e86e1513c4ab2287ac7ba2417ff761 (patch) | |
tree | 42649210d096932bed8b110378799f979de5c0d3 | |
parent | 5a185a84a57fb256e54865e43fb972f50c66f0a8 (diff) |
Always list all address sources
-rw-r--r-- | program/steps/addressbook/func.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index c4fbab219..51a45f97d 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -43,8 +43,8 @@ $js_list = array(); if (strtolower($CONFIG['address_book_type']) != 'ldap') { // We are using the DB address book, add it. $js_list = array("0" => array('id' => 0, 'readonly' => false)); -} // end if -else if (!empty($CONFIG['ldap_public'])) { +} +if (is_array($CONFIG['ldap_public'])) { foreach ($CONFIG['ldap_public'] as $id => $prop) $js_list[$id] = array('id' => $id, 'readonly' => !$prop['writable']); } |