Initialize array
This commit is contained in:
parent
229e7dcee5
commit
1530209266
|
@ -203,6 +203,7 @@ class Timeline extends BaseModule
|
|||
|
||||
while (count($selected_items) < $this->itemsPerPage && ++$count < 50 && count($items) > 0) {
|
||||
foreach ($items as $item) {
|
||||
$numposts[$item['owner-id']] = ($numposts[$item['owner-id']] ?? 0);
|
||||
if (!in_array($item['owner-id'], $reduced) || (($numposts[$item['owner-id']]++ < $maxpostperauthor)) && (count($selected_items) < $this->itemsPerPage)) {
|
||||
$selected_items[] = $item;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user