General fixes

+Fixed an exploit that permit to maintain the crop level constant if the
page was refreshed every second, with a negative production
This commit is contained in:
iopietro
2018-05-06 15:20:58 +02:00
parent bd033334c4
commit ec63b04587
3 changed files with 11 additions and 13 deletions
+2 -2
View File
@@ -37,9 +37,9 @@ class Village {
//add new line code
//check exist village if from village destroy to avoid error msg.
if ( !$database->checkVilExist($this->wid) ) {
if(!$database->checkVilExist($this->wid)){
$this->wid=$database->getVillageID($session->uid);
$_SESSION['wid']=$this->wid;
$_SESSION['wid'] = $this->wid;
}
$this->LoadTown();