thomascube
2009-07-01 73967c716980699b31b07032e553132986df0134
Also save signature field when creating a new identity at login

1 files modified
8 ■■■■■ changed files
program/include/rcube_user.php 8 ●●●●● patch | view | raw | blame | history
program/include/rcube_user.php
@@ -421,18 +421,20 @@
            'name' => strip_newlines($name),
            'email' => $email,
            'standard' => $standard,
            'signature' => '',
          ),
        ));
          
        if (!$plugin['abort'] && $plugin['record']['email']) {
          $dbh->query(
              "INSERT INTO ".get_table_name('identities')."
                (user_id, del, standard, name, email)
               VALUES (?, 0, ?, ?, ?)",
                (user_id, del, standard, name, email, signature)
               VALUES (?, 0, ?, ?, ?, ?)",
              $user_id,
              $plugin['record']['standard'],
              $plugin['record']['name'] != NULL ? $plugin['record']['name'] : '',
              $plugin['record']['email']);
              $plugin['record']['email'],
              $plugin['record']['signature']);
        }
        $standard = 0;
      }