From 006e9e192285ea654dd79fc2ff2c1d8cb28567e5 Mon Sep 17 00:00:00 2001 From: Darko Date: Wed, 3 Dec 2014 15:54:45 +0100 Subject: [PATCH] Small fixes. --- lib/TvAnger.php | 2 +- lib/copy_this/www/lib/thetvdb.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/TvAnger.php b/lib/TvAnger.php index c2d2401f5..c029f2fc4 100644 --- a/lib/TvAnger.php +++ b/lib/TvAnger.php @@ -665,7 +665,7 @@ class TvAnger %s %s %s ORDER BY r.postdate DESC LIMIT %d", - ($groupID === '' ? '' : 'AND r.group_id = ' . $groupID), + ($groupID === '' ? '' : 'AND r.groupID = ' . $groupID), ($guidChar === '' ? '' : 'AND r.guid ' . $this->pdo->likeString($guidChar, false, true)), ($lookupTvRage == 2 ? 'AND r.isrenamed = 1' : ''), $this->rageqty diff --git a/lib/copy_this/www/lib/thetvdb.php b/lib/copy_this/www/lib/thetvdb.php index 3f0335c67..430defca3 100644 --- a/lib/copy_this/www/lib/thetvdb.php +++ b/lib/copy_this/www/lib/thetvdb.php @@ -180,7 +180,7 @@ class TheTVDB echo 'TheTVDB : '.$seriesName.' '.$fullep." Not found\n"; $db = new DB(); - $db->queryExec(sprintf('UPDATE releases SET episodeinfoID = %d WHERE ID = %d', -2, $releaseID)); + $db->queryExec(sprintf('UPDATE releases SET episodeinfoID = -2 WHERE ID = %d', $releaseID)); } public function processReleases()