mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-21 10:27:27 +08:00
fix listRatings() if no PT-Gen data error
This commit is contained in:
@@ -76,7 +76,7 @@ class Torrent
|
||||
}
|
||||
$ptGenInfo = json_decode($torrentInfo['pt_gen'], true);
|
||||
$log = "torrent: " . $torrentInfo['id'];
|
||||
$siteIdAndRating = $ptGen->listRatings($ptGenInfo, $torrentInfo['url']);
|
||||
$siteIdAndRating = $ptGen->listRatings($ptGenInfo ?? [], $torrentInfo['url']);
|
||||
$log .= "siteIdAndRating: " . json_encode($siteIdAndRating);
|
||||
do_log($log);
|
||||
return $ptGen->buildRatingSpan($siteIdAndRating);
|
||||
|
||||
Reference in New Issue
Block a user