]> git.mxchange.org Git - friendica.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Fri, 14 Apr 2017 14:59:51 +0000 (16:59 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 14 May 2018 20:49:58 +0000 (22:49 +0200)
- added curly braces/spaces
- added TODOs (type-hints, old-lost code)
- more usage of dbm::is_result()
- combined some if() return stuff into a simple return statement

Signed-off-by: Roland Haeder <roland@mxchange.org>
include/items.php

index af13898b2496d3f48d440314626a9f7b4fb37b2f..1cfad356c24088e96ed358a79fe6e5e0e6eabfb3 100644 (file)
@@ -274,6 +274,7 @@ function consume_feed($xml, $importer, $contact, &$hub, $datedir = 0, $pass = 0)
 function subscribe_to_hub($url, $importer, $contact, $hubmode = 'subscribe') {
 
        $a = get_app();
+       $r = null;
 
        if (is_array($importer)) {
                $r = q("SELECT `nickname` FROM `user` WHERE `uid` = %d LIMIT 1",