diff options
Diffstat (limited to 'program/steps/addressbook/func.inc')
-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 932d34935..7fb1e2c29 100644 --- a/program/steps/addressbook/func.inc +++ b/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) |