Fixed the query

This commit is contained in:
DariusIII
2014-03-07 16:23:23 +01:00
parent 1c5cb4d0a1
commit decca287d9
+1 -3
View File
@@ -67,8 +67,6 @@ class Functions
$this->nzbs = (!empty($this->tmux->maxnfoprocessed)) ? $this->tmux->maxnfoprocessed : 100;
$this->service = '';
$this->debug = ($this->tmux->debuginfo == "0") ? false : true;
$this->renamed = '';
}
/**
* @var object Instance of PDO class.
@@ -2134,7 +2132,7 @@ class Functions
public function processConsoleReleases()
{
$db = $this->db;
$res = $db->queryDirect(sprintf('SELECT r.searchname, r.ID FROM releases r INNER JOIN category c ON r.categoryID = c.ID WHERE %s AND r.consoleinfoID IS NULL AND c.parentID = %d ORDER BY r.postdate DESC LIMIT %d', $this->renamed, Category::CAT_PARENT_GAME, $this->gameqty));
$res = $db->queryDirect(sprintf('SELECT r.searchname, r.ID FROM releases r INNER JOIN category c ON r.categoryID = c.ID WHERE r.consoleinfoID IS NULL AND c.parentID = %d ORDER BY r.postdate DESC LIMIT %d', Category::CAT_PARENT_GAME, $this->gameqty));
if ($res->rowCount() > 0) {
if ($this->echooutput) {