(Originally Github #20)
The following snippet is incorrect
if (!$trkpt->desc && $this->$suppresscalcdistance){
$this->suppress('speed'); // Prevent warnings if speed is not available - See GPXIN-16
}
and causes the error
Undefined variable: suppresscalcdistance.
suppresscalcdistance is an attribute of the object, and not a variable containing the name of another attribute, so the dollar sign should not be there.
Activity
2019-03-14 17:13:30
2019-03-14 17:14:29
The relevant commit is here - https://github.com/bentasker/PHP-GPX-Ingest/commit/88d7f93ab6c0088005b7bbc2d6dcacfe2ee013b1
2019-03-14 17:18:07
Webhook User-Agent
View Commit
2019-03-14 17:21:44
2019-03-14 17:21:44
2019-03-14 17:21:48