From 0ce283561ec0478d73063315914bae74f9158ced Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 3 Dec 2022 00:14:29 -0800 Subject: [PATCH] tq: fix davPaths warning --- lib/Db/TimelineQueryDays.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/TimelineQueryDays.php b/lib/Db/TimelineQueryDays.php index 8e7d52a3..1120a37a 100644 --- a/lib/Db/TimelineQueryDays.php +++ b/lib/Db/TimelineQueryDays.php @@ -291,7 +291,7 @@ trait TimelineQueryDays if (isset($row['path']) && !empty($row['path'])) { $rootId = \array_key_exists('rootid', $row) ? $row['rootid'] : $defaultRootId; $basePath = $internalPaths[$rootId] ?? '#__#'; - $davPath = $davPaths[$rootId] ?: ''; + $davPath = (\array_key_exists($rootId, $davPaths) ? $davPaths[$rootId] : null) ?: ''; if (0 === strpos($row['path'], $basePath)) { $rpath = substr($row['path'], \strlen($basePath));