diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-25 07:18:20 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-25 07:18:20 +0000 |
| commit | 38738ee580286c216b1f654ea65f3a44ad691c85 (patch) | |
| tree | 6d21f86622e47d35b78a06d9549f5b980924debb /roundcubemail/program/steps | |
| parent | 6eb103ad7fb187da173d633cdca101d223a95f97 (diff) | |
#1485161
git-svn-id: https://svn.roundcube.net/trunk@1577 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/addressbook/func.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/addressbook/func.inc b/roundcubemail/program/steps/addressbook/func.inc index 6d0a3938c..98c56af78 100644 --- a/roundcubemail/program/steps/addressbook/func.inc +++ b/roundcubemail/program/steps/addressbook/func.inc @@ -53,8 +53,10 @@ 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 -foreach ((array)$CONFIG['ldap_public'] as $id => $prop) - $js_list[$id] = array('id' => $id, 'readonly' => !$prop['writable']); +else if (!empty($CONFIG['ldap_public'])) { + foreach ($CONFIG['ldap_public'] as $id => $prop) + $js_list[$id] = array('id' => $id, 'readonly' => !$prop['writable']); +} $OUTPUT->set_env('address_sources', $js_list); |
