<?php
-function notes_init(App &$a) {
+use Friendica\App;
+
+function notes_init(App $a) {
if (! local_user()) {
return;
}
-function notes_content(&$a,$update = false) {
+function notes_content(App $a, $update = false) {
if (! local_user()) {
notice( t('Permission denied.') . EOL);
// default permissions - anonymous user
- $sql_extra = " AND `allow_cid` = '<" . $a->contact['id'] . ">' ";
+ $sql_extra = " AND `item`.`allow_cid` = '<" . $a->contact['id'] . ">' ";
$r = q("SELECT COUNT(*) AS `total`
FROM `item` %s