From 82adcb68692c9c19aaa785beb6245bf666a7840d Mon Sep 17 00:00:00 2001 From: horus Date: Tue, 7 Apr 2020 23:19:05 +0200 Subject: Simple Bugfix. --- app/Libraries/Background.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3