Skip to content

Commit 902bb43

Browse files
author
Bill Hunt
committed
Fixing private docs in active slot. Regression from #615.
1 parent 508e2fc commit 902bb43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/models/Doc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,8 @@ public static function getActive($num, $offset)
358358
GROUP BY doc_id
359359
360360
) total_count
361-
WHERE private != 1
361+
LEFT JOIN docs on doc_id = docs.id
362+
WHERE docs.private != 1
362363
GROUP BY doc_id
363364
ORDER BY total DESC
364365
LIMIT :offset, :limit"

0 commit comments

Comments
 (0)