From 29c832d76421f063813886b73e8e84603b91a3ed Mon Sep 17 00:00:00 2001
From: Benni Mack <benni@typo3.org>
Date: Tue, 8 Mar 2022 17:01:15 +0100
Subject: [PATCH] [BUGFIX] Avoid errors when using sys_history migration
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Resolves: #91204
Releases: 10.4
Change-Id: I68be95cc7517d505ef555ab321119f539c956603
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73858
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Simon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Simon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
---
 .../Classes/Updates/SeparateSysHistoryFromSysLogUpdate.php      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/install/Classes/Updates/SeparateSysHistoryFromSysLogUpdate.php b/typo3/sysext/install/Classes/Updates/SeparateSysHistoryFromSysLogUpdate.php
index 6c20eec7635e..8c13854dea27 100644
--- a/typo3/sysext/install/Classes/Updates/SeparateSysHistoryFromSysLogUpdate.php
+++ b/typo3/sysext/install/Classes/Updates/SeparateSysHistoryFromSysLogUpdate.php
@@ -390,7 +390,7 @@ class SeparateSysHistoryFromSysLogUpdate implements UpgradeWizardInterface, Repe
 
     protected function unserializeToArray(string $serialized): array
     {
-        $unserialized = unserialize($serialized, ['allowed_classes' => false]);
+        $unserialized = @unserialize($serialized, ['allowed_classes' => false]);
         return is_array($unserialized) ? $unserialized : [];
     }
 }
-- 
GitLab