diff options
Diffstat (limited to 'app/Libraries/Background.php')
| -rw-r--r-- | app/Libraries/Background.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Libraries/Background.php b/app/Libraries/Background.php index 30fa1f9..c491d44 100644 --- a/app/Libraries/Background.php +++ b/app/Libraries/Background.php @@ -24,8 +24,9 @@ class Background { return; } - $stats = $anime->getStats()->get()->first(); + $stats = $anime->getStats()->get()->last(); if ( is_null($stats) || is_null($stats->score) ) { + echo "saveAiring: getStats() is null. returning for anime:" . $anime->title_pref . " (" . $anime->mal_id . ")\n"; return; } |
