diff --git a/engine/impl/Review.php b/engine/impl/Review.php index ad279c98..c2c0ac91 100644 --- a/engine/impl/Review.php +++ b/engine/impl/Review.php @@ -123,6 +123,8 @@ public function getActiveReviewers($viewAll = 0, $loggedIn = 0) { $query .= "WHERE u.name = r.user AND r.airname IS NULL "; if(!$viewAll) $query .= "AND ADDDATE(r.created, 12*7) > NOW() "; + if(!$loggedIn) + $query .= "AND r.private = 0 "; $query .= "GROUP BY u.name"; $stmt = $this->prepare($query);