diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-08-13 17:38:55 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-08-13 17:38:55 +0100 |
| commit | 59669e939547aec2d4c242694dd6109d4deeb392 (patch) | |
| tree | 43fc14ae5c645a318181e6a78f679f20650c4030 | |
| parent | 07128fd837dd5f87a960ea66f5dd86a9b856c60e (diff) | |
| download | webtrees-59669e939547aec2d4c242694dd6109d4deeb392.tar.gz webtrees-59669e939547aec2d4c242694dd6109d4deeb392.tar.bz2 webtrees-59669e939547aec2d4c242694dd6109d4deeb392.zip | |
Cannot edit a null place location
| -rw-r--r-- | app/Http/Controllers/AdminLocationController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Http/Controllers/AdminLocationController.php b/app/Http/Controllers/AdminLocationController.php index cf323b7206..c8dd2962cf 100644 --- a/app/Http/Controllers/AdminLocationController.php +++ b/app/Http/Controllers/AdminLocationController.php @@ -827,8 +827,8 @@ class AdminLocationController extends AbstractBaseController $json = [ 'zoom' => (int) $row->pl_zoom ?: 2, 'coordinates' => [ - (float) strtr($row->pl_lati, ['N' => '', 'S' => '-', ',' => '.']), - (float) strtr($row->pl_long, ['E' => '', 'W' => '-', ',' => '.']), + (float) strtr($row->pl_lati ?? '0', ['N' => '', 'S' => '-', ',' => '.']), + (float) strtr($row->pl_long ?? '0', ['E' => '', 'W' => '-', ',' => '.']), ], ]; } |
