fix: last batch of manual INT typecastings

This commit is contained in:
Martin Ambrus
2017-10-18 01:11:25 +02:00
parent 6f3973748c
commit d76669cb42
10 changed files with 69 additions and 67 deletions
+1 -1
View File
@@ -722,7 +722,7 @@ private function trainUnit($unit,$amt,$great=false) {
public function finishTech() {
global $database,$village;
$q = "UPDATE ".TB_PREFIX."research SET timestamp=".(time()-1)." WHERE vref = ".$village->wid;
$q = "UPDATE ".TB_PREFIX."research SET timestamp=".(time()-1)." WHERE vref = ".(int) $village->wid;
$result = $database->query($q);
return mysqli_affected_rows();
}