mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 09:48:55 +00:00
Changed the query in Konsole.php
This commit is contained in:
+2
-1
@@ -112,7 +112,8 @@ class Konsole
|
||||
$exccatlist = " AND r.categoryID NOT IN (" . implode(",", $excludedcats) . ")";
|
||||
}
|
||||
|
||||
$res = $db->queryOneRow(sprintf("SELECT COUNT(r.ID) AS num FROM releases r INNER JOIN consoleinfo con ON con.ID = r.consoleinfoID AND con.title != '' WHERE r.passwordstatus <= (SELECT value FROM site WHERE setting='showpasswordedrelease') AND %s %s %s %s", $browseby, $catsrch, $maxage, $exccatlist));
|
||||
$res = $db->queryOneRow(sprintf("SELECT COUNT(DISTINCT r.consoleinfoID) AS num FROM releases r INNER JOIN consoleinfo con ON con.ID = r.consoleinfoID AND con.title != '' AND con.cover = 1 WHERE r.nzbstatus = 1 AND r.passwordstatus <= (SELECT value FROM site WHERE setting='showpasswordedrelease') AND %s %s %s %s", $browseby, $catsrch, $maxage, $exccatlist));
|
||||
|
||||
return $res["num"];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user