]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/subgroupnav.php
Suppress errors when checking for the existence of files that might be restricted...
[quix0rs-gnu-social.git] / lib / subgroupnav.php
index 5fd8a72a25dbc5b6d0be9065e1faa01539b0fb62..31c3ea0b568e8ed62b1e0524cec920ba621ef958 100644 (file)
@@ -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'),