From f497a6a4fe3beea00ea3671d99a8e1fa471fa65b Mon Sep 17 00:00:00 2001 From: lvessiller-opendsi Date: Thu, 8 Jan 2026 18:54:15 +0100 Subject: [PATCH] FIX warning accountancy export from external module (#36832) --- htdocs/accountancy/class/accountancyexport.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/class/accountancyexport.class.php b/htdocs/accountancy/class/accountancyexport.class.php index 472f5b5ce38..3ed4c1c7583 100644 --- a/htdocs/accountancy/class/accountancyexport.class.php +++ b/htdocs/accountancy/class/accountancyexport.class.php @@ -181,7 +181,7 @@ class AccountancyExport ); global $hookmanager; - $code = $formatcode[$type]; + $code = $formatcode[$type] ?? ''; $parameters = array('type' => $type); $reshook = $hookmanager->executeHooks('getFormatCode', $parameters, $code);