]> git.mxchange.org Git - friendica.git/commitdiff
Fix notices in Network\Probe
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 16 Oct 2018 03:12:29 +0000 (23:12 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 16 Oct 2018 03:12:29 +0000 (23:12 -0400)
src/Network/Probe.php

index 2c42643b44a07fae9389c4ac738aa3ebac54c82c..23b97a5cd060346da07652fc810e74d9cb9377fd 100644 (file)
@@ -953,13 +953,13 @@ class Probe
 
                $prof_data["addr"]         = $data["addr"];
                $prof_data["nick"]         = $data["nick"];
-               $prof_data["dfrn-request"] = $data["request"];
-               $prof_data["dfrn-confirm"] = $data["confirm"];
-               $prof_data["dfrn-notify"]  = $data["notify"];
-               $prof_data["dfrn-poll"]    = $data["poll"];
-               $prof_data["photo"]        = $data["photo"];
-               $prof_data["fn"]           = $data["name"];
-               $prof_data["key"]          = $data["pubkey"];
+               $prof_data["dfrn-request"] = defaults($data, 'request', null);
+               $prof_data["dfrn-confirm"] = defaults($data, 'confirm', null);
+               $prof_data["dfrn-notify"]  = defaults($data, 'notify' , null);
+               $prof_data["dfrn-poll"]    = defaults($data, 'poll'   , null);
+               $prof_data["photo"]        = defaults($data, 'photo'  , null);
+               $prof_data["fn"]           = defaults($data, 'name'   , null);
+               $prof_data["key"]          = defaults($data, 'pubkey' , null);
 
                logger("Result for profile ".$profile_link.": ".print_r($prof_data, true), LOGGER_DEBUG);