From 5b1d7a300b480ef3414df410d181504c293ba5e5 Mon Sep 17 00:00:00 2001 From: AL-Kateb Date: Mon, 22 Jan 2018 13:53:12 +0000 Subject: [PATCH] cleanup --- GameEngine/Database.php | 1 + build.php | 1 + 2 files changed, 2 insertions(+) diff --git a/GameEngine/Database.php b/GameEngine/Database.php index 34f8b4f5..2b6193c6 100755 --- a/GameEngine/Database.php +++ b/GameEngine/Database.php @@ -3317,6 +3317,7 @@ class MYSQLi_DB implements IDbConnection { crop = IF(crop $sign $crop < 0, 0, IF(crop $sign $crop > maxcrop, maxcrop, crop $sign $crop)) WHERE wref = " . $vid ; + return mysqli_query( $this->dblink, $q); } diff --git a/build.php b/build.php index 7e6495a0..101b1a72 100644 --- a/build.php +++ b/build.php @@ -46,6 +46,7 @@ if ( isset( $_GET['id'] ) ) { if ( ! ctype_digit( preg_replace( "/[^a-zA-Z0-9_-]/", "", $_GET['id'] ) ) ) { $_GET['id'] = "1"; } + $checkBuildings = array( 0, 16, 17, 25, 26, 27 ); if ( $_GET['id'] < 19 || ( isset( $_GET['gid'] ) && ! in_array( $_GET['gid'], $checkBuildings ) ) ) {