summaryrefslogtreecommitdiff
path: root/app/Libraries/Helper.php
diff options
context:
space:
mode:
authorhorus2022-01-03 14:55:31 +0100
committerhorus2022-01-03 14:55:31 +0100
commit536b38a27f5ca16e40eb3de4d1fd8e6f1d25e924 (patch)
treeb1e67af2ec1ce94b492832af06cf995b9297d21d /app/Libraries/Helper.php
parent6531270e480bd39cb1b364d8d1a3cd8a4fe3fc17 (diff)
downloadsenpai-536b38a27f5ca16e40eb3de4d1fd8e6f1d25e924.tar.gz
Adding new users should be async. (Does not work yet.)
Diffstat (limited to 'app/Libraries/Helper.php')
-rw-r--r--app/Libraries/Helper.php2
1 files changed, 2 insertions, 0 deletions
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"])