Skip to content

Commit

Permalink
Merge pull request #1933 from HDInnovations/Keywords
Browse files Browse the repository at this point in the history
(Fix) Keywords
  • Loading branch information
HDVinnie authored Oct 3, 2021
2 parents 72178b9 + 87d1b42 commit 521c6b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/API/TorrentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,11 @@ private static function parseKeywords($text)
$result = [];
foreach ($parts as $part) {
$part = \trim($part);
if ($part != '') {
if ($part !== '') {
$result[] = $part;
}
}

return $result;
return array_unique($result);
}
}
4 changes: 2 additions & 2 deletions app/Http/Controllers/TorrentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ private static function parseKeywords($text)
$result = [];
foreach ($parts as $part) {
$part = \trim($part);
if ($part != '') {
if ($part !== '') {
$result[] = $part;
}
}

return $result;
return array_unique($result);
}

/**
Expand Down

0 comments on commit 521c6b3

Please sign in to comment.