Don't use count
This commit is contained in:
parent
f18d459e46
commit
94c349a720
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
if (Config::get('system', 'comment_public') && in_array($nets, ['', NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS])
|
||||||
&& (strlen($sql_extra . $sql_extra2 . $sql_extra3) == 0)) {
|
&& (strlen($sql_extra . $sql_extra2 . $sql_extra3) == 0)) {
|
||||||
|
|
||||||
if (count($r) > 0) {
|
if (DBM::is_result($r)) {
|
||||||
$top_limit = current($r)['order_date'];
|
$top_limit = current($r)['order_date'];
|
||||||
$bottom_limit = end($r)['order_date'];
|
$bottom_limit = end($r)['order_date'];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue