diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-01 14:39:00 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-01 14:39:00 +0000 |
| commit | d077742b2fcdea30e1328e13f2dffb171b639d6c (patch) | |
| tree | 8e5c9636787a2d9005c5e2c6d53cb12ad61b9f12 /roundcubemail/program | |
| parent | 16df42b12395fca237e00a268c08ca5a0d1048cb (diff) | |
Move 'login' field to the right level + codestyle
git-svn-id: https://svn.roundcube.net/trunk@2691 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcube_user.php | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/roundcubemail/program/include/rcube_user.php b/roundcubemail/program/include/rcube_user.php index fb44cb0e0..737937c30 100644 --- a/roundcubemail/program/include/rcube_user.php +++ b/roundcubemail/program/include/rcube_user.php @@ -405,21 +405,24 @@ class rcube_user // create new identities records $standard = 1; foreach ($email_list as $row) { - if (is_array($row)) { $email = $row[0]; $name = $row[1] ? $row[1] : $user_name; - } else { - $email = $row; - $name = $user_name; - } + } + else { + $email = $row; + $name = $user_name; + } - $plugin = $rcmail->plugins->exec_hook('create_identity', array('record' => array( + $plugin = $rcmail->plugins->exec_hook('create_identity', array( 'login' => true, - 'user_id' => $user_id, - 'name' => strip_newlines($name), - 'email' => $email, - 'standard' => $standard))); + 'record' => array( + 'user_id' => $user_id, + 'name' => strip_newlines($name), + 'email' => $email, + 'standard' => $standard, + ), + )); if (!$plugin['abort'] && $plugin['record']['email']) { $dbh->query( |
