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',