X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotes.php;h=c5c45be7243c8a7081b9d5de0056df7d55d15267;hb=f22fe7118d52251dbd0898279ef078b797885ec4;hp=b2aa5487af963e60d1b456dbf39ec1b258b20aea;hpb=42c2e09382d3b2846a0cb709d88cda97e717424f;p=friendica.git diff --git a/mod/notes.php b/mod/notes.php index b2aa5487af..c5c45be724 100644 --- a/mod/notes.php +++ b/mod/notes.php @@ -1,6 +1,9 @@ contact['id'] . ">' "; + $sql_extra = " AND `item`.`allow_cid` = '<" . $a->contact['id'] . ">' "; $r = q("SELECT COUNT(*) AS `total` FROM `item` %s @@ -83,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); } @@ -103,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); @@ -117,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);