fix(encryption): Fix a PHP error in Encryption Util in specific situations

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2025-01-13 09:56:49 +01:00 committed by Côme Chilliet
parent 08bff4cf4a
commit 27599ef45d

View file

@ -304,7 +304,7 @@ class Util {
// detect user specific folders
if ($this->userManager->userExists($root[1])
&& in_array($root[2], $this->excludedPaths)) {
&& in_array($root[2] ?? '', $this->excludedPaths)) {
return true;
}
}