]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Avoid "property of non-object" PHP notice.
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Mar 2016 10:17:25 +0000 (11:17 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Mar 2016 10:17:25 +0000 (11:17 +0100)
lib/peopletaggroupnav.php

index fb579affe09c77f73774aca20243fbd040713279..44e4756b810a8bf0c462db9adeeaf94179c41264 100644 (file)
@@ -105,7 +105,8 @@ class PeopletagGroupNav extends Widget
 
         $this->out->elementStart('ul', array('class' => 'nav'));
 
-        if (Event::handle('StartPeopletagGroupNav', array($this))) {
+        if (Event::handle('StartPeopletagGroupNav', array($this))
+                && $tag instanceof Profile_list && $user_profile instanceof Profile) {
             // People tag timeline
             $this->out->menuItem(common_local_url('showprofiletag', array('nickname' => $user_profile->nickname,
                                                                           'tag'    => $tag->tag)),