summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas B <roundcube@gmail.com>2012-04-24 08:18:48 (GMT)
committerThomas B <roundcube@gmail.com>2012-04-24 08:18:48 (GMT)
commit1a60eea869f3bb3938968cd8b1fd4817290f7b8d (patch)
treefb2e80de2b95f273ba5d0d3bce13df9c9833f40d
parent3d704ab521731a1626de8a88e889f4b60f3a06d4 (diff)
downloadroundcubemail-plugins-kolab-1a60eea869f3bb3938968cd8b1fd4817290f7b8d.tar.gz
Don't use REPLACE which is mysql only (#650)
-rw-r--r--plugins/calendar/lib/calendar_itip.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/calendar/lib/calendar_itip.php b/plugins/calendar/lib/calendar_itip.php
index 6507b51..8008aae 100644
--- a/plugins/calendar/lib/calendar_itip.php
+++ b/plugins/calendar/lib/calendar_itip.php
@@ -239,10 +239,11 @@ class calendar_itip
if ($stored[$base])
return $token;
- // @TODO: REPLACE works only with MySQL
+ // delete old entry
+ $this->rc->db->query("DELETE FROM itipinvitations WHERE token=?", $base);
$query = $this->rc->db->query(
- "REPLACE INTO itipinvitations
+ "INSERT INTO itipinvitations
(token, event_uid, user_id, event, expires)
VALUES(?, ?, ?, ?, ?)",
$base,