mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-21 02:30:58 +00:00
fix: statistics are counting again
This commit is contained in:
@@ -1568,14 +1568,14 @@ class MYSQLi_DB {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function modifyPoints($aid, $points, $amt) {
|
function modifyPoints($aid, $points, $amt) {
|
||||||
list($aid, $points, $amt) = $this->escape_input((int) $aid, (int) $points, (int) $amt);
|
list($aid, $points, $amt) = $this->escape_input((int) $aid, $points, (int) $amt);
|
||||||
|
|
||||||
$q = "UPDATE " . TB_PREFIX . "users set $points = $points + $amt where id = $aid";
|
$q = "UPDATE " . TB_PREFIX . "users set $points = $points + $amt where id = $aid";
|
||||||
return mysqli_query($this->dblink,$q);
|
return mysqli_query($this->dblink,$q);
|
||||||
}
|
}
|
||||||
|
|
||||||
function modifyPointsAlly($aid, $points, $amt) {
|
function modifyPointsAlly($aid, $points, $amt) {
|
||||||
list($aid, $points, $amt) = $this->escape_input((int) $aid, (int) $points, (int) $amt);
|
list($aid, $points, $amt) = $this->escape_input((int) $aid, $points, (int) $amt);
|
||||||
|
|
||||||
$q = "UPDATE " . TB_PREFIX . "alidata set $points = $points + $amt where id = $aid";
|
$q = "UPDATE " . TB_PREFIX . "alidata set $points = $points + $amt where id = $aid";
|
||||||
return mysqli_query($this->dblink,$q);
|
return mysqli_query($this->dblink,$q);
|
||||||
|
|||||||
Reference in New Issue
Block a user