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.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Libraries/Helper.php b/app/Libraries/Helper.php
index 9f0ca2d..71e3cea 100644
--- a/app/Libraries/Helper.php
+++ b/app/Libraries/Helper.php
@@ -161,7 +161,11 @@ class Helper {
$actually_watching = array();
- foreach( $user->getIsWatching() as $anime_details ) {
+ $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"])
->where('user_id', $user->id)