diff options
author | alecpl <alec@alec.pl> | 2010-02-23 18:31:23 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-02-23 18:31:23 +0000 |
commit | 333c48caf7b7e166d744a747c90ad2837c17c082 (patch) | |
tree | 22b652c0fa3d8e10f398ffaa9de4408013c5f6be /program/include | |
parent | 6a31558dd88105b5191fb025d822d8514832ec2d (diff) |
- Squirrelmail_usercopy: support reply-to field (#1486506)
- Use rcube_user::insert_identity() instead of custom SQL query in rcube_user::create()
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcube_user.php | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php index a5294f552..127efa746 100644 --- a/program/include/rcube_user.php +++ b/program/include/rcube_user.php @@ -215,6 +215,8 @@ class rcube_user if (!$this->ID) return false; + unset($data['user_id']); + $insert_cols = $insert_values = array(); foreach ((array)$data as $col => $value) { @@ -422,20 +424,11 @@ class rcube_user '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, signature) - VALUES (?, 0, ?, ?, ?, ?)", - $user_id, - $plugin['record']['standard'], - $plugin['record']['name'] != NULL ? $plugin['record']['name'] : '', - $plugin['record']['email'], - $plugin['record']['signature']); + $rcmail->user->insert_identity($plugin['record']); } $standard = 0; } |