]> git.mxchange.org Git - friendica.git/commitdiff
The neverending story of removing notices continues ...
authorMichael <heluecht@pirati.ca>
Mon, 27 Aug 2018 05:37:10 +0000 (05:37 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 27 Aug 2018 05:37:10 +0000 (05:37 +0000)
src/Network/Probe.php

index 258bb6c628cd3271b45f54fc6eb6d8656217e870..33ced4105439b20b06ec5c6008c7708b428f6d87 100644 (file)
@@ -934,9 +934,10 @@ class Probe
 
                $prof_data = [];
 
-               if (empty($data["addr"])) {
+               if (empty($data["addr"]) || empty($data["nick"])) {
                        $probe_data = self::uri($profile_link);
-                       $data["addr"] = $probe_data["addr"];
+                       $data["addr"] = defaults($data, "addr", $probe_data["addr"]);
+                       $data["nick"] = defaults($data, "nick", $probe_data["nick"]);
                }
 
                $prof_data["addr"]         = $data["addr"];