X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotes.php;h=7c65a4c07ab8cc067c8314adce73b330576a89a4;hb=6001c34525867a0aa614dbc020dcbc485e515345;hp=67f8fcab29f08b9bedd2acf7f0d73335c90a4805;hpb=e0d03615bcd3002871ad1e4e704db67890c041a0;p=friendica.git diff --git a/mod/notes.php b/mod/notes.php index 67f8fcab29..7c65a4c07a 100644 --- a/mod/notes.php +++ b/mod/notes.php @@ -40,7 +40,7 @@ function notes_init(App $a) function notes_content(App $a, $update = false) { if (!local_user()) { - notice(DI::l10n()->t('Permission denied.') . EOL); + notice(DI::l10n()->t('Permission denied.')); return; } @@ -55,7 +55,7 @@ function notes_content(App $a, $update = false) 'default_location' => $a->user['default-location'], 'nickname' => $a->user['nickname'], 'lockstate' => 'lock', - 'acl' => '', + 'acl' => \Friendica\Core\ACL::getSelfOnlyHTML(local_user(), DI::l10n()->t('Personal notes are visible only by yourself.')), 'bang' => '', 'visitor' => 'block', 'profile_uid' => local_user(), @@ -86,7 +86,7 @@ function notes_content(App $a, $update = false) $count = 0; if (DBA::isResult($r)) { - $notes = Item::inArray($r); + $notes = Item::toArray($r); $count = count($notes);