summaryrefslogtreecommitdiff
path: root/app/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'app/Libraries')
-rw-r--r--app/Libraries/Background.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Libraries/Background.php b/app/Libraries/Background.php
index ea99126..30fa1f9 100644
--- a/app/Libraries/Background.php
+++ b/app/Libraries/Background.php
@@ -25,7 +25,7 @@ class Background {
}
$stats = $anime->getStats()->get()->first();
- if ( is_null($stats->score) ) {
+ if ( is_null($stats) || is_null($stats->score) ) {
return;
}