Skip to content

Commit

Permalink
More strict checks on mentions duplications - partially fixes #2135
Browse files Browse the repository at this point in the history
thanks Jorin for reporting

Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information
emanuele45 committed Jul 25, 2015
1 parent 58c9481 commit c1a273d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sources/subs/Mentions.subs.php
Expand Up @@ -135,12 +135,14 @@ function addMentions($member_from, $members_to, $msg, $type, $time = null, $stat
WHERE id_member IN ({array_int:members_to})
AND mention_type = {string:type}
AND id_member_from = {int:member_from}
AND id_msg = {int:msg}',
AND id_msg = {int:msg}
AND log_time = {int:log_time}',
array(
'members_to' => $members_to,
'type' => $type,
'member_from' => $member_from,
'msg' => $msg,
'log_time' => $time === null ? time() : $time,
)
);
$existing = array();
Expand Down

0 comments on commit c1a273d

Please sign in to comment.