X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotes.php;h=c5c45be7243c8a7081b9d5de0056df7d55d15267;hb=3359f3f5c7ecc4b6a34c4fcfc095ab4dd5fab0f1;hp=74ab18a6f95f0aeeb16418b584709163a471c981;hpb=e8e1f9253da63a11c813708f5baaeba2d9f537f3;p=friendica.git diff --git a/mod/notes.php b/mod/notes.php index 74ab18a6f9..c5c45be724 100644 --- a/mod/notes.php +++ b/mod/notes.php @@ -1,9 +1,13 @@ contact['id'] . ">' "; + $sql_extra = " AND `item`.`allow_cid` = '<" . $a->contact['id'] . ">' "; $r = q("SELECT COUNT(*) AS `total` FROM `item` %s @@ -82,7 +86,7 @@ function notes_content(&$a,$update = false) { ); - if (dbm::is_result($r)) { + if (DBM::is_result($r)) { $a->set_pager_total($r[0]['total']); $a->set_pager_itemspage(40); } @@ -102,7 +106,7 @@ function notes_content(&$a,$update = false) { $parents_arr = array(); $parents_str = ''; - if (dbm::is_result($r)) { + if (DBM::is_result($r)) { foreach($r as $rr) $parents_arr[] = $rr['item_id']; $parents_str = implode(', ', $parents_arr); @@ -116,7 +120,7 @@ function notes_content(&$a,$update = false) { dbesc($parents_str) ); - if (dbm::is_result($r)) { + if (DBM::is_result($r)) { $items = conv_sort($r,"`commented`"); $o .= conversation($a,$items,'notes',$update);