mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 09:48:55 +00:00
Prevent insertion of blank searchnames for releases
This commit is contained in:
@@ -596,7 +596,7 @@ class ProcessReleases
|
||||
$releaseID = Release::insertRelease(
|
||||
[
|
||||
'name' => $cleanRelName,
|
||||
'searchname' => utf8_encode($cleanedName),
|
||||
'searchname' => ! empty($cleanedName) ? utf8_encode($cleanedName) : $cleanRelName,
|
||||
'totalpart' => $collection['totalfiles'],
|
||||
'groups_id' => $collection['groups_id'],
|
||||
'guid' => createGUID(),
|
||||
@@ -610,7 +610,7 @@ class ProcessReleases
|
||||
]
|
||||
);
|
||||
|
||||
if ($releaseID !== false) {
|
||||
if ($releaseID !== null) {
|
||||
// Update collections table to say we inserted the release.
|
||||
$this->pdo->queryExec(
|
||||
sprintf(
|
||||
|
||||
Reference in New Issue
Block a user