mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: undefined index
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user