]> git.mxchange.org Git - friendica.git/commitdiff
Ensures Widget::postedByYear uid parameter is integer in Module\Profile
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 26 May 2019 12:18:59 +0000 (08:18 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 26 May 2019 12:18:59 +0000 (08:18 -0400)
src/Module/Profile.php

index 30dee0cb56dafa7e89a821fc0a2ca47b18a2e5fa..afebede4d0dcdf155145cfa9c8c51d0340d6a943 100644 (file)
@@ -193,8 +193,8 @@ class Profile extends BaseModule
                        $commpage = $a->profile['page-flags'] == User::PAGE_FLAGS_COMMUNITY;
                        $commvisitor = $commpage && $remote_contact;
 
-                       $a->page['aside'] .= Widget::postedByYear(System::baseUrl(true) . '/profile/' . $a->profile['nickname'], $a->profile['profile_uid'], true);
-                       $a->page['aside'] .= Widget::categories(System::baseUrl(true) . '/profile/' . $a->profile['nickname'], (!empty($category) ? XML::escape($category) : ''));
+                       $a->page['aside'] .= Widget::postedByYear(System::baseUrl(true) . '/profile/' . $a->profile['nickname'], $a->profile['profile_uid'] ?? 0, true);
+                       $a->page['aside'] .= Widget::categories(System::baseUrl(true) . '/profile/' . $a->profile['nickname'], XML::escape($category));
                        $a->page['aside'] .= Widget::tagCloud();
 
                        if (Security::canWriteToUserWall($a->profile['profile_uid'])) {