From: Marcel Werk Date: Thu, 24 Oct 2013 13:52:28 +0000 (+0200) Subject: Fixed small issue X-Git-Tag: 2.0.0_Beta_11~26 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0599e8967bdd1e5acd945ad721442dbf124a0e8e;p=GitHub%2FWoltLab%2FWCF.git Fixed small issue --- diff --git a/wcfsetup/install/files/lib/acp/page/UserListPage.class.php b/wcfsetup/install/files/lib/acp/page/UserListPage.class.php index 23228ba666..a9bfc05aa8 100755 --- a/wcfsetup/install/files/lib/acp/page/UserListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/UserListPage.class.php @@ -243,8 +243,10 @@ class UserListPage extends SortablePage { $statement = WCF::getDB()->prepareStatement($sql); $statement->execute($conditions->getParameters()); while ($row = $statement->fetchArray()) { - $row['groupIDs'] = implode(',', $userToGroups[$row['userID']]); - $accessible = UserGroup::isAccessibleGroup($userToGroups[$row['userID']]); + $groupIDs = (isset($userToGroups[$row['userID']]) ? $userToGroups[$row['userID']] : array()); + + $row['groupIDs'] = implode(',', $groupIDs); + $accessible = (!empty($groupIDs) ? UserGroup::isAccessibleGroup($groupIDs) : true); $row['accessible'] = $accessible; $row['deletable'] = ($accessible && WCF::getSession()->getPermission('admin.user.canDeleteUser') && $row['userID'] != WCF::getUser()->userID) ? 1 : 0; $row['editable'] = ($accessible && WCF::getSession()->getPermission('admin.user.canEditUser')) ? 1 : 0;