FIX accountancy closure: if subledger_label is not found, PHP8.2 throws an error. (#34736)

This commit is contained in:
ThomasNgr-OpenDSI
2025-07-15 06:14:53 +02:00
committed by GitHub
parent 704173f4a6
commit abc7f824d7

View File

@@ -2822,7 +2822,7 @@ class BookKeeping extends CommonObject
$error++;
}
$objtmp = $this->db->fetch_object($result);
$bookkeeping->subledger_label = $objtmp->subledger_label; // latest subledger label used
$bookkeeping->subledger_label = $objtmp->subledger_label ?? null; // latest subledger label used
} else {
$bookkeeping->subledger_account = null;
$bookkeeping->subledger_label = null;