error fix in the publication process

This commit is contained in:
Arno Kaimbacher 2019-02-19 18:52:52 +01:00
parent ef0b5131ce
commit b7b04a61d6
6 changed files with 35 additions and 36 deletions

View file

@ -391,8 +391,8 @@ class IndexController extends Controller
if (isset($data['geolocation'])) {
$formGeolocation = $request->input('geolocation');
if ($formGeolocation['xmin'] !== '' && $formGeolocation['ymin'] !== '' &&
$formGeolocation['xmax'] !== '' && $formGeolocation['ymax'] !== '') {
if ($formGeolocation['xmin'] !== null && $formGeolocation['ymin'] !== null &&
$formGeolocation['xmax'] !== null && $formGeolocation['ymax'] !== null) {
$geolocation = new GeolocationBox($formGeolocation);
$dataset->geolocation()->save($geolocation);
}