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),