Skip to content
Browse files

Fixed notice for groups that don't have a manager.

  • Loading branch information...
1 parent c8604fd commit 1b82614d766ea9c857c89f95da2e91ae62431166 @adamfranco committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 actions/list.php
View
4 actions/list.php
@@ -9,7 +9,9 @@
// Filter on ones managed by the current user
foreach ($groups as $key => $group) {
- if ($group['managedby'][0] != $_SESSION['user_dn'])
+ if (empty($group['managedby']))
+ unset($groups[$key]);
+ else if ($group['managedby'][0] != $_SESSION['user_dn'])
unset($groups[$key]);
}
$groups = array_values($groups);

0 comments on commit 1b82614

Please sign in to comment.
Something went wrong with that request. Please try again.