summaryrefslogtreecommitdiff
path: root/app/Libraries/Helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Libraries/Helper.php')
-rw-r--r--app/Libraries/Helper.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Libraries/Helper.php b/app/Libraries/Helper.php
index 65d774b..7d89b2c 100644
--- a/app/Libraries/Helper.php
+++ b/app/Libraries/Helper.php
@@ -64,6 +64,9 @@ class Helper {
$stats = $anime->getStats()->get()->first();
$airing = $anime->getAiring()->get()->first();
+ if ( is_null($airing) ) {
+ echo "setCalendar: There is a bug: Anime can't be null.";
+ }
/**
* Check for duplicate entry.
*/
@@ -123,6 +126,7 @@ class Helper {
* Check for anime which aren't watched anymore and delete them.
*/
$not_watched = DB::table('is_watching')
+ ->where('user_id', $user->id)
->whereNotIn('mal_id', $actually_watching)
->delete();
}