Skip to content

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
+Fixed a bug that didn't permit to edit raids
  • Loading branch information
iopietro authored Apr 28, 2019
1 parent 16d5a9e commit 1e1902e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GameEngine/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -7802,6 +7802,11 @@ function addSlotFarm($lid, $towref, $x, $y, $distance, $t1, $t2, $t3, $t4, $t5,
function editSlotFarm($eid, $lid, $oldLid, $owner, $wref, $x, $y, $dist, $t1, $t2, $t3, $t4, $t5, $t6) {
list($eid, $lid, $oldLid, $owner, $wref, $x, $y, $dist, $t1, $t2, $t3, $t4, $t5, $t6) = $this->escape_input((int) $eid, $lid, $oldLid, $owner, $wref, $x, $y, $dist, $t1, $t2, $t3, $t4, $t5, $t6);

for($i = 1; $i <= 6; $i++) {
if (${'t'.$i} == '') {
${'t'.$i} = 0;
}
}
$q = "UPDATE " . TB_PREFIX . "raidlist SET lid = '$lid', towref = '$wref', x = '$x', y = '$y', t1 = '$t1', t2 = '$t2', t3 = '$t3', t4 = '$t4', t5 = '$t5', t6 = '$t6' WHERE id = $eid AND lid = $oldLid AND EXISTS(SELECT 1 FROM " . TB_PREFIX . "farmlist WHERE id = $lid AND owner = $owner) AND EXISTS(SELECT 1 FROM " . TB_PREFIX . "farmlist WHERE id = $oldLid AND owner = $owner)";
return mysqli_query($this->dblink,$q);
}
Expand Down

0 comments on commit 1e1902e

Please sign in to comment.