summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-08-30 17:41:21 +0000
committerthomascube <thomas@roundcube.net>2006-08-30 17:41:21 +0000
commit107bde9cfd9a0392d18544b5a433552ce6f2f0a6 (patch)
tree3535c6d41d37502d4c20a6844d8652f219b84856 /program/steps
parent949dea5803fd958d02372870c6b5b8a8ad6f8745 (diff)
Added MSSQL support
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/addressbook/save.inc6
-rw-r--r--program/steps/mail/addcontact.inc2
2 files changed, 4 insertions, 4 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc
index f6b8b3cc2..abea316e5 100644
--- a/program/steps/addressbook/save.inc
+++ b/program/steps/addressbook/save.inc
@@ -50,7 +50,7 @@ if (!empty($_POST['_cid']))
if (sizeof($a_write_sql))
{
$DB->query("UPDATE $contacts_table
- SET changed=now(), ".join(', ', $a_write_sql)."
+ SET changed=".$DB->now().", ".join(', ', $a_write_sql)."
WHERE contact_id=?
AND user_id=?
AND del<>1",
@@ -172,8 +172,8 @@ else
if (sizeof($a_insert_cols))
{
$DB->query("INSERT INTO $contacts_table
- (user_id, changed, del, ".join(', ', $a_insert_cols).")
- VALUES (?, now(), 0, ".join(', ', $a_insert_values).")",
+ (user_id, changed, del, ".join(', ', $a_insert_cols).")
+ VALUES (?, ".$DB->now().", 0, ".join(', ', $a_insert_values).")",
$_SESSION['user_id']);
$insert_id = $DB->insert_id(get_sequence_name('contacts'));
diff --git a/program/steps/mail/addcontact.inc b/program/steps/mail/addcontact.inc
index a0e1e9394..b040581aa 100644
--- a/program/steps/mail/addcontact.inc
+++ b/program/steps/mail/addcontact.inc
@@ -43,7 +43,7 @@ if (!empty($_GET['_address']))
{
$DB->query("INSERT INTO ".get_table_name('contacts')."
(user_id, changed, del, name, email)
- VALUES (?, now(), 0, ?, ?)",
+ VALUES (?, ".$DB->now().", 0, ?, ?)",
$_SESSION['user_id'],
$contact['name'],
$contact['mailto']);