Skip to content

Commit

Permalink
A little correction
Browse files Browse the repository at this point in the history
  • Loading branch information
iopietro authored Feb 20, 2019
1 parent 8b0146f commit d9e2092
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GameEngine/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d9e2092

Please sign in to comment.