bug fix
This commit is contained in:
parent
1bf6eb7d94
commit
248fbc14e8
@ -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;
|
||||
|
@ -292,7 +292,7 @@
|
||||
|
||||
<div class="friends-grid">
|
||||
@foreach ($user->mutual_friends () as $key => $friend)
|
||||
@if ($key > 8)
|
||||
@if ($key > 7)
|
||||
@break
|
||||
@endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user