Use the correct table
This commit is contained in:
parent
17bc81d36e
commit
d46359a891
1 changed files with 3 additions and 1 deletions
|
@ -610,10 +610,12 @@ function networkThreadedView(App $a, $update, $parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
$params = ['order' => [$order_mode => true], 'limit' => 100];
|
$params = ['order' => [$order_mode => true], 'limit' => 100];
|
||||||
|
$table = 'network-item-view';
|
||||||
} else {
|
} else {
|
||||||
$params = ['order' => [$order_mode => true], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
|
$params = ['order' => [$order_mode => true], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
|
||||||
|
$table = 'network-thread-view';
|
||||||
}
|
}
|
||||||
$r = DBA::selectToArray('network-item-view', [], DBA::mergeConditions($condition1, $condition2), $params);
|
$r = DBA::selectToArray($table, [], DBA::mergeConditions($condition1, $condition2), $params);
|
||||||
|
|
||||||
return $o . network_display_post($a, $pager, (!$gid && !$cid && !$star), $update, $ordering, $r);
|
return $o . network_display_post($a, $pager, (!$gid && !$cid && !$star), $update, $ordering, $r);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue