summaryrefslogtreecommitdiff
path: root/app/Libraries/Background.php
diff options
context:
space:
mode:
authorhorus2020-04-07 23:19:05 +0200
committerhorus2020-04-07 23:19:05 +0200
commit82adcb68692c9c19aaa785beb6245bf666a7840d (patch)
treefe84398b2bbc7513b46b0260a63203ecfc7be3ac /app/Libraries/Background.php
parent1ed4838d367ad1841d09b3c1bdf743aa4b278f46 (diff)
downloadsenpai-82adcb68692c9c19aaa785beb6245bf666a7840d.tar.gz
Simple Bugfix.
Diffstat (limited to 'app/Libraries/Background.php')
-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;
}