From: Michael Vogel Date: Sun, 10 Jul 2016 07:27:40 +0000 (+0200) Subject: Fallback for empty names X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b9da831138667700d465f15ad50df650ab4da427;p=friendica.git Fallback for empty names --- diff --git a/include/Probe.php b/include/Probe.php index c31b98a9aa..df2246f206 100644 --- a/include/Probe.php +++ b/include/Probe.php @@ -232,10 +232,15 @@ class Probe { else $data["photo"] = App::get_baseurl().'/images/person-175.jpg'; - if (!isset($data["name"])) - $data["name"] = $data["url"]; + if (!isset($data["name"]) OR ($data["name"] == "")) { + if (isset($data["nick"])) + $data["name"] = $data["nick"]; - if (!isset($data["nick"])) { + if ($data["name"] == "") + $data["name"] = $data["url"]; + } + + if (!isset($data["nick"]) OR ($data["nick"] == "")) { $data["nick"] = strtolower($data["name"]); if (strpos($data['nick'], ' '))