See https://www.woltlab.com/community/thread/307700-fehlermeldung-beim-absenden-eines-beitrags-doppelposting/
}
}
- $sql = "INSERT INTO wcf1_service_worker_notification (workerID, notificationID, time)
- SELECT workerID, ?, ?
- FROM wcf1_service_worker
- WHERE userID = ?";
+ $sql = "INSERT IGNORE INTO wcf1_service_worker_notification
+ (workerID, notificationID, time)
+ SELECT workerID, ?, ?
+ FROM wcf1_service_worker
+ WHERE userID = ?";
$statement = WCF::getDB()->prepare($sql);
foreach ($notifications as $userID => $notification) {