]> git.mxchange.org Git - friendica.git/blobdiff - mod/notes.php
Bugfix: dba::num_rows hadn't checked the object variable
[friendica.git] / mod / notes.php
index 74ab18a6f95f0aeeb16418b584709163a471c981..835627586cada10d58b75113a1783e4a852f4386 100644 (file)
@@ -1,9 +1,12 @@
 <?php
 
-function notes_init(&$a) {
+use Friendica\App;
 
-       if(! local_user())
+function notes_init(App $a) {
+
+       if (! local_user()) {
                return;
+       }
 
        $profile = 0;
 
@@ -16,9 +19,9 @@ function notes_init(&$a) {
 }
 
 
-function notes_content(&$a,$update = false) {
+function notes_content(App $a, $update = false) {
 
-       if(! local_user()) {
+       if (! local_user()) {
                notice( t('Permission denied.') . EOL);
                return;
        }