diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-11-06 16:37:45 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-11-06 16:37:45 +0000 |
| commit | a9f64635ff48ca1acc281d6d199a6fe244360e38 (patch) | |
| tree | 8af43a8c8d795a444244b2b5713419da3f15c945 /roundcubemail/program/steps/addressbook | |
| parent | 54d37b816e754157fc7141ddb517e33f821feeed (diff) | |
Added 'changed' col to contacts table and support for 160-bit session hashes
git-svn-id: https://svn.roundcube.net/trunk@75 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook')
| -rw-r--r-- | roundcubemail/program/steps/addressbook/save.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/addressbook/save.inc b/roundcubemail/program/steps/addressbook/save.inc index 3e2cfae8f..c80707fcf 100644 --- a/roundcubemail/program/steps/addressbook/save.inc +++ b/roundcubemail/program/steps/addressbook/save.inc @@ -40,7 +40,7 @@ if ($_POST['_cid']) if (sizeof($a_write_sql)) { $DB->query("UPDATE ".get_table_name('contacts')." - SET ".join(', ', $a_write_sql)." + SET changed=now(), ".join(', ', $a_write_sql)." WHERE contact_id=? AND user_id=? AND del<>'1'", @@ -109,8 +109,8 @@ else if (sizeof($a_insert_cols)) { $DB->query("INSERT INTO ".get_table_name('contacts')." - (user_id, ".join(', ', $a_insert_cols).") - VALUES (?, ".join(', ', $a_insert_values).")", + (user_id, changedm ".join(', ', $a_insert_cols).") + VALUES (?, now(), ".join(', ', $a_insert_values).")", $_SESSION['user_id']); $insert_id = $DB->insert_id(); |
