Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
PWK-584 check if address has geoInformation
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnswaanen committed Aug 31, 2017
1 parent b54a42c commit cce6bd0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions culturefeed_agenda/includes/helpers.inc
Original file line number Diff line number Diff line change
Expand Up @@ -931,8 +931,10 @@ function culturefeed_agenda_get_locations_by_list_search() {
continue;
}

$longitude = $address->getGeoInformation()->getXCoordinate();
$latitude = $address->getGeoInformation()->getYCoordinate();
if ($address->getGeoInformation()) {
$longitude = $address->getGeoInformation()->getXCoordinate();
$latitude = $address->getGeoInformation()->getYCoordinate();
}

if ($latitude == '' || $longitude == '') {

This comment has been minimized.

Copy link
@cyberwolf

cyberwolf Sep 17, 2017

Contributor

@stijnswaanen in case the variables $latitude and $longitude are not be defined now, this line will cause PHP warnings. cc @svenhoutmeyers

continue;
Expand Down

0 comments on commit cce6bd0

Please sign in to comment.