small fixes / cleanup

This commit is contained in:
Arthur Schiwon 2014-04-22 19:41:35 +02:00
parent f2fed6de4e
commit f9f9550969
3 changed files with 2 additions and 14 deletions

View File

@ -81,9 +81,8 @@ class MetaData {
$sortAdminGroupsKeys = array(); $sortAdminGroupsKeys = array();
foreach($this->getGroups($search) as $group) { foreach($this->getGroups($search) as $group) {
$usersInGroup = $group->count();
$groupMetaData = $this->generateGroupMetaData($group); $groupMetaData = $this->generateGroupMetaData($group);
if (strtolower($gid) !== 'admin') { if (strtolower($group->getGID()) !== 'admin') {
$this->addEntry( $this->addEntry(
$groups, $groups,
$sortGroupsKeys, $sortGroupsKeys,

View File

@ -53,7 +53,7 @@ class User {
private $config; private $config;
/** /**
* @var int $home * @var int $lastLogin
*/ */
private $lastLogin; private $lastLogin;

View File

@ -22,17 +22,6 @@ $users = array();
$userManager = \OC_User::getManager(); $userManager = \OC_User::getManager();
$groupManager = \OC_Group::getManager(); $groupManager = \OC_Group::getManager();
if (isset($_GET['offset'])) {
$offset = $_GET['offset'];
} else {
$offset = 0;
}
if (isset($_GET['limit'])) {
$limit = $_GET['limit'];
} else {
$limit = 10;
}
$isAdmin = OC_User::isAdminUser(OC_User::getUser()); $isAdmin = OC_User::isAdminUser(OC_User::getUser());
$groupsInfo = new \OC\Group\MetaData(OC_User::getUser(), $isAdmin, $groupManager); $groupsInfo = new \OC\Group\MetaData(OC_User::getUser(), $isAdmin, $groupManager);