From 78d1fafef045165ef1bb45e75700efe50df0aa1e Mon Sep 17 00:00:00 2001 From: ak703 Date: Fri, 28 Jan 2005 22:18:39 +0000 Subject: [PATCH] fixes lost email when adding users --- admin/inc/class.soaccounts.inc.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/admin/inc/class.soaccounts.inc.php b/admin/inc/class.soaccounts.inc.php index c71cd83995..06622136c6 100755 --- a/admin/inc/class.soaccounts.inc.php +++ b/admin/inc/class.soaccounts.inc.php @@ -20,8 +20,13 @@ function add_user($userData) { $userData['account_expires'] = $userData['expires']; - $userData['account_email'] = $userData['email']; - + + + if($userData['email'] != "") + { + $userData['account_email'] = $userData['email']; + } + $GLOBALS['phpgw']->db->lock( Array( 'phpgw_accounts',