Commit 1ab66648 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Prevent PHP warning in FolderBrowser

Resolves: #96083
Releases: master, 11.5
Change-Id: I76d486d1b817832cbf7c62252fe4a5e3f9f94391
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72289

Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent a6f21085
......@@ -69,7 +69,7 @@ class FolderBrowser extends AbstractElementBrowser implements ElementBrowserInte
$data['expandFolder'] = $this->expandFolder;
$store = true;
} else {
$this->expandFolder = $data['expandFolder'];
$this->expandFolder = $data['expandFolder'] ?? null;
$store = false;
}
return [$data, $store];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment