summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas B <roundcube@gmail.com>2012-04-24 08:18:48 (GMT)
committerThomas Bruederli <thomas@roundcube.net>2012-05-10 18:11:44 (GMT)
commit30c1bff8f058ae7fd84b2b75e8ecf121a30a1e64 (patch)
tree939a60d8034fc490d51c286d6b6274de3dff7da7
parenta5c25804317e0241c1fbe52b17c13bb5f6a587a3 (diff)
downloadroundcubemail-plugins-kolab-30c1bff8f058ae7fd84b2b75e8ecf121a30a1e64.tar.gz
Don't use REPLACE which is mysql only (#650)
-rw-r--r--plugins/calendar/lib/calendar_itip.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/calendar/lib/calendar_itip.php b/plugins/calendar/lib/calendar_itip.php
index 97865a6..76c4fb4 100644
--- a/plugins/calendar/lib/calendar_itip.php
+++ b/plugins/calendar/lib/calendar_itip.php
@@ -243,9 +243,12 @@ class calendar_itip
// already stored this
if ($stored[$base])
return $token;
-
+
+ // 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,