bug fix
git-svn-id: file:///home/shish/svn/shimmie2/trunk@785 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
c736f6b7b6
commit
b28c77b32d
1 changed files with 2 additions and 1 deletions
|
@ -41,9 +41,10 @@ class NumericScore extends Extension {
|
|||
if(is_a($event, 'ImageInfoSetEvent')) {
|
||||
global $user;
|
||||
$char = $_POST['numeric_score'];
|
||||
$score = 0;
|
||||
if($char == "u") $score = 1;
|
||||
else if($char == "d") $score = -1;
|
||||
send_event(new NumericScoreSetEvent($event->image_id, $user, $score));
|
||||
if($score != 0) send_event(new NumericScoreSetEvent($event->image_id, $user, $score));
|
||||
}
|
||||
|
||||
if(is_a($event, 'NumericScoreSetEvent')) {
|
||||
|
|
Reference in a new issue