]> git.mxchange.org Git - friendica.git/commitdiff
Don't use count
authorMichael <heluecht@pirati.ca>
Mon, 15 Jan 2018 14:02:34 +0000 (14:02 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 15 Jan 2018 14:02:34 +0000 (14:02 +0000)
mod/network.php

index bf0f3aa1ba6bcda63fd45975448cee3b023af01e..d1606a054af798bc14af6d0f87c4bbe6bd3b05bd 100644 (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 {