diff --git a/application/ConstructionConsent/ConstructionConsentController.php b/application/ConstructionConsent/ConstructionConsentController.php index d40fb57b5..8ceaed952 100644 --- a/application/ConstructionConsent/ConstructionConsentController.php +++ b/application/ConstructionConsent/ConstructionConsentController.php @@ -257,7 +257,7 @@ class ConstructionConsentController extends mfBaseController { $data = []; $data["constructionconsentproject_id"] = $r->constructionconsentproject_id; - $data["netzgebiet_id"] = $r->netzgebiet_id; + $data["netzgebiet_id"] = (isset($r->netzgebiet_id) && is_int($r->netzgebiet_id)) ? $r->netzgebiet_id : null; $data["object_type"] = $r->object_type; $data["name"] = $r->name; $data["adb_hausnummer_id"] = $r->adb_hausnummer_id;