Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Feb 1, 2019
2 parents a6d9b85 + eb408f1 commit 4c13574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Blacklight/Releases.php
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ public function search($searchName, $usenetName, $posterName, $fileName, $groupN
return $releases;
}
$releases = ! empty($searchResult) ? Release::fromQuery($sql) : [];
if (! empty($releases) || $releases->isNotEmpty()) {
if ((\is_array($releases) && ! empty($releases)) || $releases->isNotEmpty()) {
$releases[0]->_totalrows = $this->getPagerCount($baseSql);
}
$expiresAt = now()->addMinutes(config('nntmux.cache_expiry_medium'));
Expand Down

0 comments on commit 4c13574

Please sign in to comment.