From 38ea709f2a8875968c9458083c8a6341b880c8c8 Mon Sep 17 00:00:00 2001 From: Exodus4D Date: Wed, 15 Jun 2016 19:10:54 +0200 Subject: [PATCH] fixed #194 PHP 5.6 error --- app/main/model/mapmodel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main/model/mapmodel.php b/app/main/model/mapmodel.php index b4e71dd4..b633a7a2 100644 --- a/app/main/model/mapmodel.php +++ b/app/main/model/mapmodel.php @@ -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; }