Fix a bad attempt to call explode()
This commit is contained in:
parent
939cd419b8
commit
c167d3e34e
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class SyndicateToTwitter implements ShouldQueue
|
|||
|
||||
if ($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]);
|
||||
$lng = trim($location[1]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue