Adding karma.
This commit is contained in:
parent
5cf47ced5a
commit
c2f4800620
1 changed files with 2 additions and 2 deletions
|
|
@ -238,8 +238,8 @@ sub identifier {
|
|||
|
||||
sub karma {
|
||||
if (defined $_[1] && defined $_[2] && defined $_[3]) {
|
||||
WebGUI::SQL->write("update users set karma=karma+$_[1] where userId=$_[0]");
|
||||
WebGUI::SQL->write("insert into karmaLog values ($_[0]->userId,$_[1],".quote($_[2]).",".quote($_[3]).")");
|
||||
WebGUI::SQL->write("update users set karma=karma+$_[1] where userId=".$_[0]->userId);
|
||||
WebGUI::SQL->write("insert into karmaLog values (".$_[0]->userId,$_[1].",".quote($_[2]).",".quote($_[3]).")");
|
||||
}
|
||||
return $_[0]->{_user}{karma};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue