We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d133a5 commit a264adcCopy full SHA for a264adc
src/Ushahidi/Modules/V5/Http/Resources/Post/PostGeometryResource.php
@@ -36,9 +36,11 @@ public function toArray($request)
36
}
37
38
// TODO : next code just keep the first location , later we may add a flag for primary location field
39
- foreach ($data['geojson']['features'] as $key => $feature) {
40
- if ($key > 0) {
41
- unset($data['geojson']['features'][$key]);
+ if (isset($data['geojson'])) {
+ foreach ($data['geojson']['features'] as $key => $feature) {
+ if ($key > 0) {
42
+ unset($data['geojson']['features'][$key]);
43
+ }
44
45
46
unset($data['hide_location']);
0 commit comments