]> git.mxchange.org Git - friendica.git/blobdiff - mod/pubsubhubbub.php
Bugfix: dba::num_rows hadn't checked the object variable
[friendica.git] / mod / pubsubhubbub.php
index a6c36631aefa5fb77a6d383d2a39d1cff23156f3..da2f94748943887d7fe3c3dc8a710ac0ce820209 100644 (file)
@@ -1,10 +1,12 @@
 <?php
 
+use Friendica\App;
+
 function post_var($name) {
        return (x($_POST, $name)) ? notags(trim($_POST[$name])) : '';
 }
 
-function pubsubhubbub_init(App &$a) {
+function pubsubhubbub_init(App $a) {
        // PuSH subscription must be considered "public" so just block it
        // if public access isn't enabled.
        if (get_config('system', 'block_public')) {
@@ -158,5 +160,3 @@ function pubsubhubbub_init(App &$a) {
 
        killme();
 }
-
-?>