]> git.mxchange.org Git - friendica.git/blobdiff - mod/display.php
Merge branch 'fixes/poller-warning' into rhaeder-develop
[friendica.git] / mod / display.php
index c53e92d05b39829e7c37aae838340cee72ca4433..97261e267d659bc882eede5e00ea313ccc571581 100644 (file)
@@ -192,13 +192,20 @@ function display_fetchauthor($a, $item) {
                        $profiledata["photo"] = $r[0]["photo"];
                        $profiledata["nickname"] = $r[0]["nick"];
                        $profiledata["addr"] = $r[0]["addr"];
-                       $profiledata["keywords"] = $r[0]["keywords"];
                        $profiledata["network"] = $r[0]["network"];
 
+                       if ($r[0]["keywords"])
+                               $profiledata["keywords"] = $r[0]["keywords"];
+
                        if ($showdetails) {
-                               $profiledata["address"] = $r[0]["location"];
-                               $profiledata["about"] = $r[0]["about"];
-                               $profiledata["gender"] = $r[0]["gender"];
+                               if ($r[0]["location"])
+                                       $profiledata["address"] = $r[0]["location"];
+
+                               if ($r[0]["about"])
+                                       $profiledata["about"] = $r[0]["about"];
+
+                               if ($r[0]["gender"])
+                                       $profiledata["gender"] = $r[0]["gender"];
                        }
                }
        }
@@ -340,6 +347,8 @@ function display_content(&$a, $update = 0) {
                return;
        }
 
+       // We need the editor here to be able to reshare an item.
+
        if ($is_owner) {
                $x = array(
                        'is_owner' => true,