mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-08 21:56:09 +00:00
Fixed bugs in trade routes
+Trade routes are now editable without errors or redirects +Trade routes are now filtered by village and not by account
This commit is contained in:
@@ -4309,10 +4309,10 @@ References: User ID/Message ID, Mode
|
||||
}
|
||||
|
||||
// no need to cache this method
|
||||
function getTradeRoute($uid) {
|
||||
list($uid) = $this->escape_input((int) $uid);
|
||||
function getTradeRoute($from) {
|
||||
list($from) = $this->escape_input((int) $from);
|
||||
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "route where uid = $uid ORDER BY timestamp ASC";
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "route where `from` = $from ORDER BY timestamp ASC";
|
||||
$result = mysqli_query($this->dblink,$q);
|
||||
return $this->mysqli_fetch_all($result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user