summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/addressbook/func.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-02 17:17:59 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-02 17:17:59 +0000
commit7a3dde3ba837b8449b3f352bc20843843d7f66e2 (patch)
tree71c7fbdaaa59a594e160fcd9466aa56dc84fe4e2 /roundcubemail/program/steps/addressbook/func.inc
parent69e8243419f782b2e6fe2ed05b10120f96fb60fd (diff)
- Fix setting default addressbook as selected in source selector
git-svn-id: https://svn.roundcube.net/trunk@5009 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook/func.inc')
-rw-r--r--roundcubemail/program/steps/addressbook/func.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/addressbook/func.inc b/roundcubemail/program/steps/addressbook/func.inc
index 932d34935..7fb1e2c29 100644
--- a/roundcubemail/program/steps/addressbook/func.inc
+++ b/roundcubemail/program/steps/addressbook/func.inc
@@ -150,10 +150,10 @@ function rcmail_default_source($writable=false)
global $RCMAIL;
// get list of address sources
- $list = $RCMAIL->get_address_sources($writable);
+ $first = reset($RCMAIL->get_address_sources($writable));
// use first directory by default
- return $list[key($list)]['id'];
+ return $first['id'];
}
function rcmail_set_sourcename($abook)