According to the TBG Devs, this also works to add users to a group
Jeremy D

Jeremy D commited on 2011-11-07 15:24:47
Showing 1 changed files, with 2 additions and 4 deletions.

... ...
@@ -190,14 +190,12 @@
190 190
 				// Nobody admins the admins.
191 191
 				if (!empty($admingroups) && array_intersect($admingroups, $user_info['groups']))
192 192
 				{
193
-					$group = new TBGGroup();
194
-					$group->setID(1);
193
+					$group = new TBGGroup(1);
195 194
 					$user->setGroup($group);
196 195
 				}
197 196
 				else
198 197
 				{
199
-					$group = new TBGGroup();
200
-					$group->setID(2);
198
+					$group = new TBGGroup(2);
201 199
 					$user->setGroup($group);
202 200
 				}
203 201
 
204 202