From 38f7deca7859f1c70721a82ace2024d014f4654f Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 21 Mar 2016 11:17:25 +0100 Subject: [PATCH] Avoid "property of non-object" PHP notice. --- lib/peopletaggroupnav.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/peopletaggroupnav.php b/lib/peopletaggroupnav.php index fb579affe0..44e4756b81 100644 --- a/lib/peopletaggroupnav.php +++ b/lib/peopletaggroupnav.php @@ -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)), -- 2.39.5