mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
FIX accountancy closure: if subledger_label is not found, PHP8.2 throws an error. (#34736)
This commit is contained in:
committed by
GitHub
parent
704173f4a6
commit
abc7f824d7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user