Fix a bad attempt to call explode()

This commit is contained in:
Jonny Barnes 2016-10-19 22:52:07 +01:00
parent 939cd419b8
commit c167d3e34e

View file

@ -48,7 +48,7 @@ class SyndicateToTwitter implements ShouldQueue
if ($this->note->location) { if ($this->note->location) {
$explode = explode(':', $this->note->location); $explode = explode(':', $this->note->location);
$location = (count($explode) == 2) ? explode(',', $explode[0]) : explode(',', $explode); $location = explode(',', $explode[0]); //the latlng will always be in [0]
$lat = trim($location[0]); $lat = trim($location[0]);
$lng = trim($location[1]); $lng = trim($location[1]);
} }