fix: a LOT of manual typecastings for DB values that should be INTs

This commit is contained in:
Martin Ambrus
2017-10-18 00:33:03 +02:00
parent 96cd79adc9
commit 057f713528
7 changed files with 495 additions and 493 deletions
+1 -1
View File
@@ -454,7 +454,7 @@
private function updateMax($leader) {
global $bid18, $database;
$leader = $database->escape($leader);
$leader = $database->escape((int) $leader);
$q = mysqli_query($GLOBALS['link'],"SELECT * FROM " . TB_PREFIX . "alidata where leader = $leader");
if(mysqli_num_rows($q) > 0){
$villages = $database->getVillagesID2($leader);