]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/ExtendedProfile/ExtendedProfilePlugin.php
Merged
[quix0rs-gnu-social.git] / plugins / ExtendedProfile / ExtendedProfilePlugin.php
index ea928b995e054ace9f17e02bcdaf27896d3507c6..12541437020c7ced92cd3b73852d294d9d94a630 100644 (file)
@@ -81,7 +81,8 @@ class ExtendedProfilePlugin extends Plugin
 
     function onEndShowAccountProfileBlock(HTMLOutputter $out, Profile $profile) {
         $user = User::getKV('id', $profile->id);
-        if ($user) {
+
+        if ($user instanceof User) {
             $url = common_local_url('profiledetail', array('nickname' => $user->nickname));
             // TRANS: Link text on user profile page leading to extended profile page.
             $out->element('a', array('href' => $url, 'class' => 'profiledetail'), _m('More details...'));