]> git.mxchange.org Git - friendica-addons.git/blobdiff - widgets/widget_friendheader.php
Merge pull request #1027 from MrPetovan/task/9328-add-range-percent-template
[friendica-addons.git] / widgets / widget_friendheader.php
index 734933c879550bafddfcea813ff72daea3d4d454..c403129069f880af168b876a3c854889fc13faac 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 
 use Friendica\Content\Text\HTML;
-use Friendica\Core\L10n;
 use Friendica\DI;
 
 function friendheader_widget_name()
@@ -26,9 +25,9 @@ function friendheader_widget_size()
 
 function friendheader_widget_content(&$a, $conf)
 {
-       $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `user`.* FROM `profile`
+       $r = q("SELECT `profile`.* , `user`.* FROM `profile`
                        LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid`
-                       WHERE `user`.`uid` = %s AND `profile`.`is-default` = 1 LIMIT 1",
+                       WHERE `user`.`uid` = %s LIMIT 1",
                intval($conf['uid'])
        );
        if (!count($r)) {