Fix rootid warning

pull/221/head
Varun Patil 2022-11-16 00:23:57 -08:00
parent bd89c9d355
commit cd3fb4b897
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ trait TimelineQueryDays
// Check if path exists and starts with basePath and remove // Check if path exists and starts with basePath and remove
if (isset($row['path']) && !empty($row['path'])) { if (isset($row['path']) && !empty($row['path'])) {
$rootId = $row['rootid'] ?: $defaultRootId; $rootId = \array_key_exists('rootid', $row) ? $row['rootid'] : $defaultRootId;
$basePath = $internalPaths[$rootId] ?? '#__#'; $basePath = $internalPaths[$rootId] ?? '#__#';
$davPath = $davPaths[$rootId] ?: ''; $davPath = $davPaths[$rootId] ?: '';