From f092b671ba895513bda2ac7f62a4a6a01162d13f Mon Sep 17 00:00:00 2001 From: NIKO28it Date: Wed, 13 Mar 2013 19:08:34 +0100 Subject: [PATCH] Fix Farmlist Bug --- Templates/goldClub/farmlist_addraid.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Templates/goldClub/farmlist_addraid.tpl b/Templates/goldClub/farmlist_addraid.tpl index e3201a99..77c4cf0b 100644 --- a/Templates/goldClub/farmlist_addraid.tpl +++ b/Templates/goldClub/farmlist_addraid.tpl @@ -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"); } -?> \ No newline at end of file +?>