diff options
| author | horus | 2020-04-07 23:19:05 +0200 |
|---|---|---|
| committer | horus | 2020-04-07 23:19:05 +0200 |
| commit | 82adcb68692c9c19aaa785beb6245bf666a7840d (patch) | |
| tree | fe84398b2bbc7513b46b0260a63203ecfc7be3ac | |
| parent | 1ed4838d367ad1841d09b3c1bdf743aa4b278f46 (diff) | |
| download | senpai-82adcb68692c9c19aaa785beb6245bf666a7840d.tar.gz | |
Simple Bugfix.
| -rw-r--r-- | app/Libraries/Background.php | 2 |
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; } |
