From df31c578fa916c6a1437d3ac9a74ff8d8e3363ba Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Thu, 2 Nov 2017 00:55:10 +0100 Subject: [PATCH] fix: undefined index --- GameEngine/Technology.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Technology.php b/GameEngine/Technology.php index 3c2e32b4..4ba28cc0 100755 --- a/GameEngine/Technology.php +++ b/GameEngine/Technology.php @@ -383,7 +383,7 @@ class Technology { public function getTech($tech) { global $village; - return ($village->techarray['t'.$tech] == 1); + return (isset($village->techarray['t'.$tech]) && $village->techarray['t'.$tech] == 1); } private function procTrain($post,$great=false) {