From abceb4db7d518430aad7c8db37136c0225f4bb67 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 26 Oct 2022 10:40:33 -0700 Subject: [PATCH] Pass only var by ref --- lib/Db/TimelineQueryDays.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Db/TimelineQueryDays.php b/lib/Db/TimelineQueryDays.php index 829d47dd..27b4a9a6 100644 --- a/lib/Db/TimelineQueryDays.php +++ b/lib/Db/TimelineQueryDays.php @@ -240,7 +240,8 @@ trait TimelineQueryDays // Get all subfolder Ids recursively $folderIds = []; if ($folder instanceof Folder) { - $folderIds = $this->getSubfolderIdsRecursive($query->getConnection(), $folder, $archive); + $conn = $query->getConnection(); + $folderIds = $this->getSubfolderIdsRecursive($conn, $folder, $archive); } else { $folderIds = $folder; }