diff --git a/includes/pages/game/class.ShowResearchPage.php b/includes/pages/game/class.ShowResearchPage.php index ed18cc0..7439cac 100644 --- a/includes/pages/game/class.ShowResearchPage.php +++ b/includes/pages/game/class.ShowResearchPage.php @@ -392,6 +392,11 @@ public function show() $GetAll = $GLOBALS['DATABASE']->query("SELECT * FROM `uni1_vars_requriements` WHERE elementID = ".$Element." ;"); if($GLOBALS['DATABASE']->numRows($GetAll)>0){ while($x = $GLOBALS['DATABASE']->fetch_array($GetAll)){ + if($x['requireID'] <= 99){ + $x['rlevel'] = $PLANET[$resource[$x['requireID']]]; + }else{ + $x['rlevel'] = $USER[$resource[$x['requireID']]]; + } $AllTech[] = $x; } } @@ -488,4 +493,4 @@ public function show() $this->display('page.research.default.tpl'); } -} \ No newline at end of file +}