From caede0e9f9cbddb790947c73200562bd67c9581a Mon Sep 17 00:00:00 2001 From: Shadow Date: Thu, 5 Dec 2013 17:27:32 +0200 Subject: [PATCH] Update Automation.php --- GameEngine/Automation.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 49bc148e..988783c2 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -1050,7 +1050,8 @@ class Automation { $toF = $database->getVillage($data['to']); $fromF = $database->getVillage($data['from']); $conqureby=0; - $NatarCapital=($toF['owner']==3 && $toF['capital']==1)? true:false; + $NatarCapital=($toF['owner']==3 && $toF['capital']==1)? true:false; + if(!isset($to['name']) || $to['name']=='') $to['name']="??"; $DefenderUnit = array(); $DefenderUnit = $database->getUnit($data['to']); @@ -1849,13 +1850,12 @@ class Automation { if ($isoasis == 0) { $pop=$this->recountPop($data['to']); } else $pop=10; //oasis cannot be destroy bt cata/ram - if($pop<=0) { - if($can_destroy==1) { - $info_cat = ",".$catp_pic.", Village already destroyed."; - $village_destroyed = 1; - } else { - $info_cat = ",".$catp_pic.", Village can't be destroyed."; - } + if($pop<=0) { + if($can_destroy==1) { + $info_cat = "".$catp_pic.", Village already destroyed."; + } else { + $info_cat = "".$catp_pic.", Village can't be destroyed."; + } } else {