This commit is contained in:
Ghostie 2025-01-07 21:30:48 -05:00
parent 1bf6eb7d94
commit 248fbc14e8
2 changed files with 5 additions and 2 deletions

View File

@ -397,7 +397,7 @@ class TypeActor {
}
else
{
return $collection["orderedItems"];
return isset ($collection ["orderedItems"]) ? $collection ["orderedItems"] : [];
}
}
catch (\Exception $e)
@ -422,6 +422,9 @@ class TypeActor {
]);
$collection = json_decode ($response->getBody ()->getContents (), true);
if (!isset ($collection ["orderedItems"]))
return [];
foreach ($collection["orderedItems"] as $item)
{
$items[] = $item;

View File

@ -292,7 +292,7 @@
<div class="friends-grid">
@foreach ($user->mutual_friends () as $key => $friend)
@if ($key > 8)
@if ($key > 7)
@break
@endif