Don't use REPLACE which is mysql only (#650)
This commit is contained in:
parent
3d704ab521
commit
1a60eea869
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue