mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 01:38:54 +00:00
Change categoryid to categories_id, category table to categories table
This commit is contained in:
@@ -339,7 +339,7 @@ class PostProcess
|
||||
|
||||
$query = $this->pdo->queryOneRow(
|
||||
sprintf('
|
||||
SELECT id, groupid, categoryid, name, searchname, UNIX_TIMESTAMP(postdate) AS post_date, id AS releaseid
|
||||
SELECT id, groupid, categories_id, name, searchname, UNIX_TIMESTAMP(postdate) AS post_date, id AS releaseid
|
||||
FROM releases
|
||||
WHERE isrenamed = 0
|
||||
AND id = %d',
|
||||
@@ -354,7 +354,7 @@ class PostProcess
|
||||
// Only get a new name if the category is OTHER.
|
||||
$foundName = true;
|
||||
if (!in_array(
|
||||
(int)$query['categoryid'],
|
||||
(int)$query['categories_id'],
|
||||
Category::OTHERS_GROUP
|
||||
)
|
||||
) {
|
||||
@@ -470,7 +470,7 @@ class PostProcess
|
||||
$query = $this->pdo->queryOneRow(
|
||||
sprintf('
|
||||
SELECT
|
||||
r.id, r.groupid, r.categoryid, r.name, r.searchname,
|
||||
r.id, r.groupid, r.categories_id, r.name, r.searchname,
|
||||
UNIX_TIMESTAMP(r.postdate) AS post_date,
|
||||
r.id AS releaseid,
|
||||
g.name AS groupname
|
||||
|
||||
Reference in New Issue
Block a user