From 9bf2e8a0ad8865e123803f50dee5838ece868353 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Fri, 22 Jun 2001 01:34:06 +0000 Subject: [PATCH] Final(?) change to country selection, since this is now a combined admin and preferences option --- addressbook/inc/functions.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/functions.inc.php b/addressbook/inc/functions.inc.php index 92714cc78a..b00ae75409 100755 --- a/addressbook/inc/functions.inc.php +++ b/addressbook/inc/functions.inc.php @@ -297,7 +297,12 @@ //$t->set_block('form','add','add'); //$t->set_block('form','edit','edit'); - $countrylist = $phpgw_info['server']['countrylist']; + if ( ($phpgw_info['server']['countrylist'] == 'user_choice' && + $phpgw_info['user']['preferences']['common']['countrylist'] == 'use_select') || + ($phpgw_info['server']['countrylist'] == 'force_select')) + { + $countrylist = True; + } $email = $fields['email']; $emailtype = $fields['email_type'];