Commit 6daba238d291b8fcf4fc60fac396c271774595e7

Authored by nbm
1 parent 516205b9

Change _back_ to addGroup from add. Return the just-created group.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3414 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 2 additions and 2 deletions
lib/groups/GroupUtil.php
@@ -138,7 +138,7 @@ class GroupUtil { @@ -138,7 +138,7 @@ class GroupUtil {
138 // }}} 138 // }}}
139 139
140 // {{{ addGroup 140 // {{{ addGroup
141 - function add($aGroupDetails) { 141 + function addGroup($aGroupDetails) {
142 $aDefaultDetails = array( 142 $aDefaultDetails = array(
143 "is_unit_admin" => false, 143 "is_unit_admin" => false,
144 "is_system_admin" => false, 144 "is_system_admin" => false,
@@ -160,7 +160,7 @@ class GroupUtil { @@ -160,7 +160,7 @@ class GroupUtil {
160 if ($ret !== true) { 160 if ($ret !== true) {
161 return PEAR::raiseError("Non-true and non-error return value"); 161 return PEAR::raiseError("Non-true and non-error return value");
162 } 162 }
163 - return true; 163 + return $oGroup;
164 } 164 }
165 // }}} 165 // }}}
166 166