From f249c70a271c1b09d5580d3c7683bebdb6a12df6 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 10 Jun 2015 02:47:31 +0200 Subject: [PATCH] case fix. --- newznab/controllers/Film.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/newznab/controllers/Film.php b/newznab/controllers/Film.php index 14d53cad7..e2a5523d2 100644 --- a/newznab/controllers/Film.php +++ b/newznab/controllers/Film.php @@ -1313,12 +1313,12 @@ class Film public function getUpcoming($type, $source = 'rottentomato') { $list = $this->pdo->queryOneRow( - sprintf('SELECT * FROM upcoming WHERE source = %s AND typeID = %d', $this->pdo->escapeString($source), $type) + sprintf('SELECT * FROM upcoming WHERE source = %s AND typeid = %d', $this->pdo->escapeString($source), $type) ); if ($list === false) { $this->updateUpcoming(); $list = $this->pdo->queryOneRow( - sprintf('SELECT * FROM upcoming WHERE source = %s AND typeID = %d', $this->pdo->escapeString($source), $type) + sprintf('SELECT * FROM upcoming WHERE source = %s AND typeid = %d', $this->pdo->escapeString($source), $type) ); } return $list; @@ -1335,7 +1335,7 @@ class Film $rt = new \RottenTomato($this->pdo->getSetting('rottentomatokey')); - if ($rt instanceof \RottenTomato) { + if ($rt instanceof RottenTomato) { $this->_getRTData('boxoffice', $rt); $this->_getRTData('theaters', $rt); @@ -1425,7 +1425,7 @@ class Film { return $this->pdo->queryExec( sprintf(" - INSERT INTO upcoming (source, typeID, info, updateddate) + INSERT INTO upcoming (source, typeid, info, updateddate) VALUES (%s, %d, %s, NOW()) ON DUPLICATE KEY UPDATE info = %s", $this->pdo->escapeString($source),