From 0599e8967bdd1e5acd945ad721442dbf124a0e8e Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 24 Oct 2013 15:52:28 +0200 Subject: [PATCH] Fixed small issue --- wcfsetup/install/files/lib/acp/page/UserListPage.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.20.1