diff --git a/engine/impl/Library.php b/engine/impl/Library.php index 2647ce06..6130eaa7 100644 --- a/engine/impl/Library.php +++ b/engine/impl/Library.php @@ -284,7 +284,7 @@ public function searchPos($tableIndex, &$pos, $count, $search, $sortBy = 0) { "FROM reviews r LEFT JOIN albumvol a ON a.tag = r.tag ". "LEFT JOIN publist p ON p.pubkey = a.pubkey "; $query .= is_numeric($search) ? - "WHERE r.airname = ? " : + ($search ? "WHERE r.airname = ? " : "WHERE ? = 0 ") : "WHERE r.user = ? AND r.airname IS NULL "; if(!Engine::session()->isAuth("u")) $query .= "AND r.private = 0 ";