From 025a4602be6c0def171d776fbde2e41d66aa3b76 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 23 May 2026 16:18:03 +0200 Subject: [PATCH] fix: fix null array key error in fixPathsForShareExceptions Signed-off-by: Robin Appelman --- lib/FilesHooks.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/FilesHooks.php b/lib/FilesHooks.php index e401f9fde..90a93773d 100644 --- a/lib/FilesHooks.php +++ b/lib/FilesHooks.php @@ -1047,7 +1047,9 @@ protected function fixPathsForShareExceptions(array $affectedUsers, $shareId) { $query = $queryBuilder->executeQuery(); while ($row = $query->fetch()) { - $affectedUsers[$row['share_with']] = $row['file_target']; + if ($row['share_with'] !== null) { + $affectedUsers[$row['share_with']] = $row['file_target']; + } } return $affectedUsers;