From cf8533968dbbeeeb96873476655fc460adfaede8 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 13 Apr 2023 23:20:23 -0700 Subject: [PATCH] cte: add brackets for clarity Signed-off-by: Varun Patil --- lib/Db/TimelineQueryCTE.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Db/TimelineQueryCTE.php b/lib/Db/TimelineQueryCTE.php index df0e748c..6da450c1 100644 --- a/lib/Db/TimelineQueryCTE.php +++ b/lib/Db/TimelineQueryCTE.php @@ -29,9 +29,10 @@ trait TimelineQueryCTE return "*PREFIX*cte_folders_all(fileid, name) AS ( {$BASE_QUERY} - WHERE + WHERE ( {$CLS_TOP_FOLDER} AND {$CLS_NOMEDIA} + ) UNION ALL @@ -42,8 +43,9 @@ trait TimelineQueryCTE {$CLS_MIME_FOLDER} AND {$CLS_ARCHIVE_JOIN} ) - WHERE + WHERE ( {$CLS_NOMEDIA} + ) )"; }