mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-07 21:34:22 +00:00
General fixes
+Fixed a bug in the farm list that permitted to attack the same village troops were sent +Fixed a bug that permitted to delete others raid lists +Fixed a bug that permitted to view broken reports +Fixed a bug that permitted to insert 0 troops in the raid list +Fixed the broken graphic of the raid/farm list +Fixed a bug that didn't permit to send more than 2 raids at a time (in the raid list) +General improovements and bug fixing +Some clean-up
This commit is contained in:
@@ -7411,10 +7411,10 @@ References: User ID/Message ID, Mode
|
||||
return mysqli_query($this->dblink,$q);
|
||||
}
|
||||
|
||||
function delSlotFarm($id) {
|
||||
list($id) = $this->escape_input((int) $id);
|
||||
|
||||
$q = "DELETE FROM " . TB_PREFIX . "raidlist where id = $id";
|
||||
function delSlotFarm($id, $owner, $lid) {
|
||||
list($id, $owner, $lid) = $this->escape_input((int) $id, (int) $owner, (int) $lid);
|
||||
|
||||
$q = "DELETE FROM " . TB_PREFIX . "raidlist WHERE id = $id AND lid = $lid AND EXISTS(SELECT 1 FROM " . TB_PREFIX . "farmlist WHERE id = $lid AND owner = $owner)";
|
||||
return mysqli_query($this->dblink,$q);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user