X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fnotes.php;h=835627586cada10d58b75113a1783e4a852f4386;hb=6161ceff649fd52cb6cdfe14ebe5fdd35f6854a9;hp=a25d090ed701faad32ab49fb2dbc7012b13d8e2f;hpb=7886de5c393591eaf4e05f2a496a4f40060cb262;p=friendica.git diff --git a/mod/notes.php b/mod/notes.php index a25d090ed7..835627586c 100644 --- a/mod/notes.php +++ b/mod/notes.php @@ -1,9 +1,12 @@ set_pager_total($r[0]['total']); $a->set_pager_itemspage(40); } @@ -102,7 +105,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 +119,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);