X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FDirectory%2Flib%2Fsortablegrouplist.php;h=756b078416f87ee40e2e03f40ffe6a137f0e7046;hb=3f28b17c86c4cd88d4f39629ea8a89ec3a820790;hp=7474d0daa608f9cfa9a037a8da1b4f71bf11e13a;hpb=d32fef60394dbacca2f1dec24fd55043e328d0d1;p=quix0rs-gnu-social.git diff --git a/plugins/Directory/lib/sortablegrouplist.php b/plugins/Directory/lib/sortablegrouplist.php index 7474d0daa6..756b078416 100644 --- a/plugins/Directory/lib/sortablegrouplist.php +++ b/plugins/Directory/lib/sortablegrouplist.php @@ -119,7 +119,7 @@ class SortableGroupList extends SortableSubscriptionList $this->out->elementStart('tbody'); } - function newListItem($profile, $odd) + function newListItem(Profile $profile, $odd) { return new SortableGroupListItem($profile, $this->owner, $this->action, $odd); } @@ -251,8 +251,8 @@ class SortableGroupListItem extends SortableSubscriptionListItem function showJoinButton() { $user = $this->owner; - if ($user) { + if ($user instanceof User) { $this->out->elementStart('li', 'entity_subscribe'); // XXX: special-case for user looking at own // subscriptions page