fixed #194 PHP 5.6 error

This commit is contained in:
Exodus4D
2016-06-15 19:10:54 +02:00
parent 5a39829fd5
commit 38ea709f2a

View File

@@ -216,7 +216,8 @@ class MapModel extends BasicModel {
*/
public function getNewSystem($systemId){
$systemController = new System();
$system = reset($systemController->getSystemModelByIds([$systemId]));
$systems = $systemController->getSystemModelByIds([$systemId]);
$system = reset($systems);
$system->mapId = $this->id;
return $system;
}