From 25b0bf29423c26363f699247d72b68832a9e773e Mon Sep 17 00:00:00 2001 From: horus Date: Sun, 19 Apr 2020 18:07:16 +0200 Subject: Bugfix --- app/Libraries/Helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Libraries/Helper.php') diff --git a/app/Libraries/Helper.php b/app/Libraries/Helper.php index 8eb70a6..9f0ca2d 100644 --- a/app/Libraries/Helper.php +++ b/app/Libraries/Helper.php @@ -68,11 +68,11 @@ class Helper { } foreach( $user->IsWatching as $anime ) { - $stats = $anime->getStats()->get()->first(); + $stats = $anime->getStats()->get()->last(); $airing = $anime->getAiring()->get()->last(); if ( is_null($airing) ) { - echo "setCalendar: There is a bug: Anime can't be null."; + echo "setCalendar: This is a bug! No airing date found for: " . $anime->title_pref . " (" . $anime->mal_id . ")\n"; continue; } /** -- cgit v1.2.3