diff options
author | Adrian Lang <mail@adrianlang.de> | 2009-03-07 01:43:55 +0100 |
---|---|---|
committer | Adrian Lang <mail@adrianlang.de> | 2009-03-11 10:38:58 +0100 |
commit | 00c14d22ded3868939f4999daa0a3c3e4203c20e (patch) | |
tree | 45c36b75fc4795fb083b996f49bc2c982f37335a /lib/subgroupnav.php | |
parent | a547c5f642c23dd4f1c83b4a1500914c0ef1c861 (diff) |
Remove comparison with member variable of null variable, cleaned code a bit.
Diffstat (limited to 'lib/subgroupnav.php')
-rw-r--r-- | lib/subgroupnav.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/subgroupnav.php b/lib/subgroupnav.php index 5fd8a72a2..31c3ea0b5 100644 --- a/lib/subgroupnav.php +++ b/lib/subgroupnav.php @@ -98,7 +98,7 @@ class SubGroupNav extends Widget $this->user->nickname), $action == 'usergroups', 'nav_usergroups'); - if ($this->user->id == $cur->id) { + if (!is_null($cur) && $this->user->id === $cur->id) { $this->out->menuItem(common_local_url('invite'), _('Invite'), sprintf(_('Invite friends and colleagues to join you on %s'), |