From 73967c716980699b31b07032e553132986df0134 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 01 Jul 2009 12:07:26 -0400
Subject: [PATCH] Also save signature field when creating a new identity at login

---
 program/include/rcube_user.php |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php
index 737937c..8c77a03 100644
--- a/program/include/rcube_user.php
+++ b/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;
       }

--
Gitblit v1.9.1