]> git.mxchange.org Git - friendica.git/commitdiff
Improve formatting in mod/display
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 26 Jan 2020 21:59:02 +0000 (16:59 -0500)
committerGitHub <noreply@github.com>
Sun, 26 Jan 2020 21:59:02 +0000 (16:59 -0500)
Co-Authored-By: Philipp <admin+Github@philipp.info>
mod/display.php

index f9c7f9dcf79007d1fddedbcdfad23342b743eaa9..9ec7e05cae7c11728b9b9565e6833b1b7ad1f15f 100644 (file)
@@ -96,10 +96,10 @@ function display_init(App $a)
 
        $profiledata = display_fetchauthor($a, $item);
 
-       if (strstr(Strings::normaliseLink($profiledata["url"]), Strings::normaliseLink(DI::baseUrl()))) {
-               $nickname = str_replace(Strings::normaliseLink(DI::baseUrl()) . "/profile/", "", Strings::normaliseLink($profiledata["url"]));
+       if (strstr(Strings::normaliseLink($profiledata['url']), Strings::normaliseLink(DI::baseUrl()))) {
+               $nickname = str_replace(Strings::normaliseLink(DI::baseUrl()) . '/profile/', '', Strings::normaliseLink($profiledata['url']));
 
-               if (!empty($a->user["nickname"]) && $nickname != $a->user["nickname"]) {
+               if (!empty($a->user['nickname']) && $nickname != $a->user['nickname']) {
                        $profile = DBA::fetchFirst("SELECT `profile`.* , `contact`.`avatar-date` AS picdate, `user`.* FROM `profile`
                                INNER JOIN `contact` on `contact`.`uid` = `profile`.`uid` INNER JOIN `user` ON `profile`.`uid` = `user`.`uid`
                                WHERE `user`.`nickname` = ? AND `profile`.`is-default` AND `contact`.`self` LIMIT 1",