Fixed crash in AddressDB::handleRimoStatusUpdate()

This commit is contained in:
Frank Schubert
2025-08-21 10:37:15 +02:00
parent c7a7d6ce1e
commit 866c3b2ae1

View File

@@ -226,9 +226,9 @@ class AddressDB {
$log->debug(__METHOD__.": new Preorder Status flag: ".$matrix["pf"]);
$preorder = PreorderModel::getFirstActive(["adb_wohneinheit_id" => $wohneinheit->id]);
$preorder->resetSaveNesting();
if($preorder) {
$preorder->resetSaveNesting();
$preorderstatus = null;
$preorderstatus_flag = null;
if(array_key_exists("p", $matrix) && $matrix["p"]) {