fix: undefined index

This commit is contained in:
Martin Ambrus
2017-11-02 00:55:10 +01:00
parent 87c489814b
commit df31c578fa
+1 -1
View File
@@ -383,7 +383,7 @@ class Technology {
public function getTech($tech) { public function getTech($tech) {
global $village; 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) { private function procTrain($post,$great=false) {