]> 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 b2aa5487af963e60d1b456dbf39ec1b258b20aea..835627586cada10d58b75113a1783e4a852f4386 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 
-function notes_init(App &$a) {
+use Friendica\App;
+
+function notes_init(App $a) {
 
        if (! local_user()) {
                return;
@@ -17,7 +19,7 @@ function notes_init(App &$a) {
 }
 
 
-function notes_content(&$a,$update = false) {
+function notes_content(App $a, $update = false) {
 
        if (! local_user()) {
                notice( t('Permission denied.') . EOL);