From: <nk...@us...> - 2011-09-02 03:47:58
|
Revision: 36797 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=36797&view=rev Author: nkoth Date: 2011-09-02 03:47:52 +0000 (Fri, 02 Sep 2011) Log Message: ----------- [FIX] Refine last commit, some missing non-critical checks and repeated line Modified Paths: -------------- trunk/lib/wiki-plugins/wikiplugin_subscribegroups.php Modified: trunk/lib/wiki-plugins/wikiplugin_subscribegroups.php =================================================================== --- trunk/lib/wiki-plugins/wikiplugin_subscribegroups.php 2011-09-02 02:56:15 UTC (rev 36796) +++ trunk/lib/wiki-plugins/wikiplugin_subscribegroups.php 2011-09-02 03:47:52 UTC (rev 36797) @@ -131,15 +131,14 @@ $userGroups = $userlib->get_user_groups_inclusion($user); if (isset($garray)) { foreach ($garray as $g) { - if (!empty($_REQUEST['assign']) && !isset($userGroups[$group])) { + if (!empty($_REQUEST['assign']) && !isset($userGroups[$g])) { $userlib->assign_user_to_group($user, $g); } - if (!empty($_REQUEST['unassign']) && isset($userGroups[$group])) { + if (!empty($_REQUEST['unassign']) && isset($userGroups[$g])) { $userlib->remove_user_from_group($user, $group); } } } - $userGroups = $userlib->get_user_groups_inclusion($user); if (!empty($_REQUEST['default']) && isset($userGroups[$_REQUEST['default']])) { $userlib->set_default_group($user, $_REQUEST['default']); if (isset($defaulturl)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |