Fix bad sql connexion

This commit is contained in:
2026-07-12 16:01:36 +02:00
parent be73ed60ad
commit dd32a2dd12
+1 -1
View File
@@ -179,7 +179,7 @@ class User {
$stmt2->execute(); $stmt2->execute();
// 2. On repasse TOUS leurs films en mode perso (is_common = 0) // 2. On repasse TOUS leurs films en mode perso (is_common = 0)
$stmt = $this->db->prepare("UPDATE movies SET is_common = 0 WHERE user_id IN (?, ?)"); $stmt = $this->conn->prepare("UPDATE movies SET is_common = 0 WHERE user_id IN (?, ?)");
$stmt->execute([$userId, $partnerId]); $stmt->execute([$userId, $partnerId]);
$this->conn->commit(); $this->conn->commit();