mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 11:18:56 +00:00
Fix TV search sending wrong data.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
2016-06-01 DariusIII
|
||||
* Fix: Fix TV search sending wrong data.
|
||||
2016-05-31 DariusIII
|
||||
* Fix: Remove doubled and wrong preinfo function ih Gamma theme utils.js
|
||||
* Fix: Fix PreDB page layout in Gamma theme.
|
||||
|
||||
@@ -974,11 +974,11 @@ class Releases
|
||||
* @return array
|
||||
*/
|
||||
public function searchShows(
|
||||
$siteIdArr = array(), $series = '', $episode = '', $airdate = '', $offset = 0,
|
||||
$siteIdArr = [], $series = '', $episode = '', $airdate = '', $offset = 0,
|
||||
$limit = 100, $name = '', $cat = [-1], $maxAge = -1, $minSize = 0
|
||||
)
|
||||
{
|
||||
$siteSQL = array();
|
||||
$siteSQL = [];
|
||||
$showSql = '';
|
||||
|
||||
if (is_array($siteIdArr)) {
|
||||
@@ -1005,11 +1005,16 @@ class Releases
|
||||
);
|
||||
$show = $this->pdo->queryOneRow($showQry);
|
||||
if ($show !== false) {
|
||||
if (($series !== '' && $episode !== '') || $airdate !== '') {
|
||||
if ($show['episode'] > 0) {
|
||||
$showSql = 'AND r.tv_episodes_id = ' . $show['episode'];
|
||||
} else {
|
||||
} else if($show['video'] > 0) {
|
||||
$showSql = 'AND r.videos_id = ' . $show['video'];
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
} else {
|
||||
// If we were passed ID Info and no match was found, do not run the query
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user