mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 10:18:55 +00:00
case fix.
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user