From: Michael Date: Mon, 15 Jan 2018 14:02:34 +0000 (+0000) Subject: Don't use count X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=94c349a7203a4448b442212ef6bf5bb0ef88d3e9;p=friendica.git Don't use count --- diff --git a/mod/network.php b/mod/network.php index bf0f3aa1ba..d1606a054a 100644 --- a/mod/network.php +++ b/mod/network.php @@ -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 {