diff --git a/src/Listener/Dca/LeafletDcaListener.php b/src/Listener/Dca/LeafletDcaListener.php index a8737ee..871574c 100644 --- a/src/Listener/Dca/LeafletDcaListener.php +++ b/src/Listener/Dca/LeafletDcaListener.php @@ -122,6 +122,7 @@ class LeafletDcaListener $data['marker'] = json_encode($latLng); } catch (\Exception $e) { // LatLng throws an exception of value could not be created. Just let the value empty when. + $data['marker'] = null; } return $this->templateEngine->render('toolkit:be:be_leaflet_geocode.html5', $data); diff --git a/src/Model/MarkerModel.php b/src/Model/MarkerModel.php index 9b10323..8064a1d 100644 --- a/src/Model/MarkerModel.php +++ b/src/Model/MarkerModel.php @@ -44,7 +44,7 @@ class MarkerModel extends AbstractActiveModel public static function findByFilter($pid, ?Filter $filter = null) { if (!$filter) { - $table = static::getTable(); + $table = static::getTable(); return static::findBy( [