]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix notices in lib/grouplist.php
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 20 Feb 2009 22:29:40 +0000 (17:29 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 20 Feb 2009 22:29:40 +0000 (17:29 -0500)
lib/grouplist.php

index 6801ab42617eb40d876fecccba72066c0c2e2ba4..1b854749982198e68f89de742d2c1fd306e3ce1c 100644 (file)
@@ -151,7 +151,7 @@ class GroupList extends Widget
 
         # If we're on a list with an owner (subscriptions or subscribers)...
 
-        if ($user && $user->id == $this->owner->id) {
+        if (!empty($user) && !empty($this->owner) && $user->id == $this->owner->id) {
             $this->showOwnerControls();
         }