Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
774 views
in Plugins by
edited by

I see in my logs that the q_vote_up and in_q_vote_up event is registered twice (but only for me as admin!). Example here:

2012-10-28 16:25:31 95.90.218.244 1 echteinfachtv 595250729713884472 in_q_vote_up postid=3902    vote=1    oldvote=1
2012-10-28 16:25:31 95.90.218.244 291 Klausii 595250729713884472 q_vote_up postid=3902    vote=1    oldvote=1
2012-10-28 16:25:31 95.90.218.244 1 echteinfachtv 595250729713884472 in_q_vote_up postid=3902    vote=1    oldvote=0
2012-10-28 16:25:31 95.90.218.244 291 Klausii 595250729713884472 q_vote_up postid=3902    vote=1    oldvote=0

Is this a bug in event-logger or could it be that the user somehow triggered the event twice in the same second?

Thanks, Kai

 

PS: The only difference I can see is "oldvote=0" then "oldvote=1" - what is that?

1 Answer

0 votes
by

From qa-history-layer.php:

if($params['oldvote'] == '1') // unvoting an upvote

...