Merge pull request #195 from NIKO28it/patch-1

Fix Farmlist Bug
This commit is contained in:
yi12345
2013-03-14 04:31:49 -07:00
+3 -1
View File
@@ -29,6 +29,8 @@ $vdata = $database->getVillage($Wref);
$errormsg .= "There is no village on those coordinates.";
}elseif($troops == "0"){
$errormsg .= "No troops has been selected.";
}elseif($database->hasBeginnerProtection($Wref)==1){
$errormsg .= "Player under protection.";
}else{
if($_POST['target_id'] != ""){
@@ -158,4 +160,4 @@ $vill[$towref] = 1;
}else{
header("Location: build.php?id=39&t=99");
}
?>
?>