From decca287d94e73d23b0b55065cdf69cc98300126 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 7 Mar 2014 16:23:23 +0100 Subject: [PATCH] Fixed the query --- test/functions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/functions.php b/test/functions.php index a1c66bc81..87b468a81 100755 --- a/test/functions.php +++ b/test/functions.php @@ -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) {