From b2904b70a013b1dd2d86c5f27f10ccaa030c58ba Mon Sep 17 00:00:00 2001 From: Franzz Date: Sun, 2 Feb 2020 20:08:25 +0100 Subject: [PATCH] Fix Geo File Path --- inc/project.php | 6 +----- inc/spot.php | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/inc/project.php b/inc/project.php index 7af83ac..f212a7c 100644 --- a/inc/project.php +++ b/inc/project.php @@ -87,10 +87,6 @@ class Project extends PhpObject { return $this->updateField('timezone', $sTimeZone); } - public function getGeoFile() { - return $this->asGeo['file']; - } - public function getFeedIds() { return $this->oDb->selectColumn( Feed::FEED_TABLE, @@ -146,7 +142,7 @@ class Project extends PhpObject { $this->asActive = array('from'=>$asProject['active_from'], 'to'=>$asProject['active_to']); $this->sCodeName = $asProject['codename']; $this->sName = $asProject['name']; - $this->asGeo = array('file'=>$asProject['geofile'], 'timezone'=>$asProject['timezone']); + $this->asGeo = array('geofile'=>$asProject['geofilepath'], 'gpxfile'=>$asProject['gpxfilepath'], 'timezone'=>$asProject['timezone']); } else $this->addError('Error while setting project: no project ID'); } diff --git a/inc/spot.php b/inc/spot.php index c53472d..d63cde8 100755 --- a/inc/spot.php +++ b/inc/spot.php @@ -186,6 +186,8 @@ class Spot extends Main private function getSpotMessages() { + $asMessages = array(); + //Get messages from all feeds belonging to the project $asFeeds = $this->oProject->getFeedIds(); foreach($asFeeds as $iFeedId) {