X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fnotes.php;h=c7cfe8d70f1a2d3e13f98249785b6fcf9073a7b1;hb=221cfa8c22b724228ed24618569cabcae582d331;hp=a25d090ed701faad32ab49fb2dbc7012b13d8e2f;hpb=7d531afd00de35ef55d0cc5caa63242765341dae;p=friendica.git diff --git a/mod/notes.php b/mod/notes.php index a25d090ed7..c7cfe8d70f 100644 --- a/mod/notes.php +++ b/mod/notes.php @@ -1,9 +1,10 @@ set_pager_total($r[0]['total']); $a->set_pager_itemspage(40); } @@ -102,7 +103,7 @@ function notes_content(&$a,$update = false) { $parents_arr = array(); $parents_str = ''; - if(count($r)) { + if (dbm::is_result($r)) { foreach($r as $rr) $parents_arr[] = $rr['item_id']; $parents_str = implode(', ', $parents_arr); @@ -116,7 +117,7 @@ function notes_content(&$a,$update = false) { dbesc($parents_str) ); - if(count($r)) { + if (dbm::is_result($r)) { $items = conv_sort($r,"`commented`"); $o .= conversation($a,$items,'notes',$update);