summaryrefslogtreecommitdiff
path: root/program/include/rcube_user.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-07-01 14:39:00 +0000
committerthomascube <thomas@roundcube.net>2009-07-01 14:39:00 +0000
commit08c8c3dbb96f203f72ff7222d14833b48eb63086 (patch)
tree3732f5f585bfcc075d33e9e0dbdd4c2bcc56276e /program/include/rcube_user.php
parent9da5eddead7b962453dcdc1265b5959e7bbbf649 (diff)
Move 'login' field to the right level + codestyle
Diffstat (limited to 'program/include/rcube_user.php')
-rw-r--r--program/include/rcube_user.php23
1 files changed, 13 insertions, 10 deletions
diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php
index fb44cb0e0..737937c30 100644
--- a/program/include/rcube_user.php
+++ b/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(