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