Skip to content

Commit

Permalink
allow ALBUM_AIRNAME all selector
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Apr 4, 2024
1 parent a8037e0 commit f89c5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/impl/Library.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ";
Expand Down

0 comments on commit f89c5eb

Please sign in to comment.