commit ed50797167cffc3139ed8a86d7a91b9aa47860d9
parent 6c6b23acfea047b099239d811ada3f1f87df3c12
Author: Jan Dankert <devnull@localhost>
Date: Sun, 6 Nov 2011 23:17:38 +0100
Meldung, wenn keine Ă„nderung erfolgt ist.
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/action/UserAction.class.php b/action/UserAction.class.php
@@ -287,6 +287,7 @@ class UserAction extends Action
{
$allGroups = Group::getAll();
$userGroups = $this->user->getGroups();
+ $aenderung = false;
foreach( $allGroups as $id=>$name )
{
@@ -296,14 +297,19 @@ class UserAction extends Action
{
$this->user->addGroup($id);
$this->addNotice('group',$name,'ADDED');
+ $aenderung = true;
}
if ( $hasGroup && !$this->hasRequestVar('group'.$id) )
{
$this->user->delGroup($id);
$this->addNotice('group',$name,'DELETED');
+ $aenderung = true;
}
}
+
+ if ( ! $aenderung )
+ $this->addNotice('group',$name,'NOTHING_DONE');
}