diff --git a/Sources/Likes.php b/Sources/Likes.php index dd907f9d24..103e8791ae 100644 --- a/Sources/Likes.php +++ b/Sources/Likes.php @@ -344,7 +344,7 @@ protected function insert() call_integration_hook('integrate_issue_like_before', array(&$type, &$content, &$user, &$time)); // Insert the like. - $smcFunc['db_insert']('insert', + $smcFunc['db_insert']('ignore', '{db_prefix}user_likes', array('content_id' => 'int', 'content_type' => 'string-6', 'id_member' => 'int', 'like_time' => 'int'), array($content, $type, $user['id'], $time),