From: Stephen Paul Weber Date: Fri, 26 Feb 2016 22:06:04 +0000 (+0000) Subject: Fix author fallback X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9dc4f13579c6cb6c681061ac7350e77bb0c71248;p=quix0rs-gnu-social.git Fix author fallback Previously if there was no discernable author the nickname "Array" would end up used. This was a bug, obviously. It is fixed now. --- diff --git a/plugins/Linkback/lib/util.php b/plugins/Linkback/lib/util.php index 2f024dd233..cd0476ceef 100644 --- a/plugins/Linkback/lib/util.php +++ b/plugins/Linkback/lib/util.php @@ -284,7 +284,7 @@ function linkback_profile($entry, $mf2, $response, $target) { } if(!$author) { - $author = array('name' => array($entry['name'])); + $author = array('name' => $entry['name']); } if(!$author['url']) {