1
1
Fork 0

Don't use count

This commit is contained in:
Michael 2018-01-15 14:02:34 +00:00
parent f18d459e46
commit 94c349a720

View file

@ -812,7 +812,7 @@ function networkThreadedView(App $a, $update = 0) {
if (Config::get('system', 'comment_public') && in_array($nets, ['', NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS])
&& (strlen($sql_extra . $sql_extra2 . $sql_extra3) == 0)) {
if (count($r) > 0) {
if (DBM::is_result($r)) {
$top_limit = current($r)['order_date'];
$bottom_limit = end($r)['order_date'];
} else {