]> git.mxchange.org Git - friendica.git/blobdiff - mod/filer.php
Bugfix: dba::num_rows hadn't checked the object variable
[friendica.git] / mod / filer.php
index 02b8d68978f44897ae0b0d4716fec28a6f99a521..6259879de2ae9d6d31ad8ac722b9a4747e77ca88 100644 (file)
@@ -1,13 +1,14 @@
 <?php
 
+use Friendica\App;
+
 require_once('include/security.php');
 require_once('include/bbcode.php');
 require_once('include/items.php');
 
-if(! function_exists('filer_content')) {
-function filer_content(&$a) {
+function filer_content(App $a) {
 
-       if(! local_user()) {
+       if (! local_user()) {
                killme();
        }
 
@@ -35,4 +36,3 @@ function filer_content(&$a) {
        }
        killme();
 }
-}