thomascube
2009-07-01 08c8c3dbb96f203f72ff7222d14833b48eb63086
Move 'login' field to the right level + codestyle

1 files modified
23 ■■■■■ changed files
program/include/rcube_user.php 23 ●●●●● patch | view | raw | blame | history
program/include/rcube_user.php
@@ -405,21 +405,24 @@
      // 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(