From 536b38a27f5ca16e40eb3de4d1fd8e6f1d25e924 Mon Sep 17 00:00:00 2001 From: horus Date: Mon, 3 Jan 2022 14:55:31 +0100 Subject: Adding new users should be async. (Does not work yet.) --- app/Libraries/Helper.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/Libraries/Helper.php') diff --git a/app/Libraries/Helper.php b/app/Libraries/Helper.php index 71e3cea..4ab1e75 100644 --- a/app/Libraries/Helper.php +++ b/app/Libraries/Helper.php @@ -162,9 +162,11 @@ class Helper { $actually_watching = array(); $anime = $user->getIsWatching(); + if ( false === $anime ) return false; + foreach( $anime as $anime_details ) { $check = DB::table('is_watching') ->where('mal_id', $anime_details["mal_id"]) -- cgit v1.2.3