From fc716d0e6e7ceaf8e67c7e866ad6819cf8aca628 Mon Sep 17 00:00:00 2001 From: ralf Date: Mon, 17 Oct 2022 15:58:59 +0200 Subject: [PATCH] Fix PHP 8.x Fatal: array_merge(): Argument #2 must be of type array, null given --- api/src/Mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index cafdc455b8..cc897f521b 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -3189,7 +3189,7 @@ class Mail //error_log(__METHOD__.__LINE__.array2string($autoFolderObjects)); // avoid calling sortByAutoFolder as it is not regarding subfolders $autoFolderObjectsTmp = $autoFolderObjects; - unset($autoFolderObjects); + $autoFolderObjects = []; uasort($autoFolderObjectsTmp, array($this,'sortByMailbox')); foreach($autoFoldersTmp as $afk=>$aF) {