Message: Undefined offset: 108
File: /includes/pages/game/ShowResearchPage.class.php
Line: 61
URL: oldschoolspaceempire.com/game.php?page=research
PHP-Version: 7.2.11
PHP-API: litespeed
2Moons Version: 2.0.git
Debug Backtrace:
#0 /includes/pages/game/ShowResearchPage.class.php(61): errorHandler(8, 'Undefined offse...', 'FILEPATH ...', 61, Array)
#1 /includes/pages/game/ShowResearchPage.class.php(342): ShowResearchPage->CancelBuildingFromQueue()
#2 /game.php(57): ShowResearchPage->show()
#3 {main}
$db = Database::get();
$elementId= $USER['b_tech_id'];
$costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $PLANET[$elementId]); <---- Line 61
if($PLANET['id'] == $USER['b_tech_planet'])
{
if(isset($costResources[901])) { $PLANET[$resource[901]] += $costResources[901]; }
if(isset($costResources[902])) { $PLANET[$resource[902]] += $costResources[902]; }
if(isset($costResources[903])) { $PLANET[$resource[903]] += $costResources[903]; }
File: /includes/pages/game/ShowResearchPage.class.php
Line: 61
URL: oldschoolspaceempire.com/game.php?page=research
PHP-Version: 7.2.11
PHP-API: litespeed
2Moons Version: 2.0.git
Debug Backtrace:
#0 /includes/pages/game/ShowResearchPage.class.php(61): errorHandler(8, 'Undefined offse...', 'FILEPATH ...', 61, Array)
#1 /includes/pages/game/ShowResearchPage.class.php(342): ShowResearchPage->CancelBuildingFromQueue()
#2 /game.php(57): ShowResearchPage->show()
#3 {main}
$db = Database::get();
$elementId= $USER['b_tech_id'];
$costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $PLANET[$elementId]); <---- Line 61
if($PLANET['id'] == $USER['b_tech_planet'])
{
if(isset($costResources[901])) { $PLANET[$resource[901]] += $costResources[901]; }
if(isset($costResources[902])) { $PLANET[$resource[902]] += $costResources[902]; }
if(isset($costResources[903])) { $PLANET[$resource[903]] += $costResources[903]; }