Update DirectMessageController

pull/7446/head
Daniel Supernault 7 hours ago
parent 77ec462c77
commit 904b74c09a
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -385,7 +385,7 @@ class DirectMessageController extends Controller
$res = FollowerService::getMutualsWithProfiles($user->profile_id, 10, $cursor);
if ($res && isset($res['total_count']) && is_int($res['total_count']) && $res['total_count'] > 100) {
if ($cursor && $res && isset($res['total_count']) && is_int($res['total_count']) && $res['total_count'] > 100) {
$empty = [
'data' => [],
'has_more' => false,

Loading…
Cancel
Save