From d9e2092ff10868f122fb533ba23e1972dd65fed1 Mon Sep 17 00:00:00 2001 From: Pietro Date: Wed, 20 Feb 2019 16:34:03 +0100 Subject: [PATCH] A little correction --- GameEngine/Database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GameEngine/Database.php b/GameEngine/Database.php index 77af0705..ea3428ba 100755 --- a/GameEngine/Database.php +++ b/GameEngine/Database.php @@ -787,9 +787,9 @@ function updateResource($vid, $what, $number) { public function hasBeginnerProtection($vid) { list($vid) = $this->escape_input((int) $vid); $q = "SELECT u.protect - FROM ". TB_PREFIX ."_users u - JOIN ". TB_PREFIX ."_vdata v ON u.id = v.owner - JOIN ". TB_PREFIX ."_odata o ON u.id = o.owner + FROM ". TB_PREFIX ."users u + JOIN ". TB_PREFIX ."vdata v ON u.id = v.owner + JOIN ". TB_PREFIX ."odata o ON u.id = o.owner WHERE v.wref = ". $vid ." OR o.wref = ". $vid . " LIMIT 1"; $result = mysqli_query($this->dblink,$q);