tq: fix davPaths warning

cap
Varun Patil 2022-12-03 00:14:29 -08:00
parent 9910691242
commit 0ce283561e
1 changed files with 1 additions and 1 deletions

View File

@ -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));