Don't use REPLACE which is mysql only (#650)

This commit is contained in:
Thomas B 2012-04-24 10:18:48 +02:00
parent 3d704ab521
commit 1a60eea869

View file

@ -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,