// Tho logic is different depending on who is doing the operation.
// Co-manager and admin - mark user deleted.
// Tho logic is different depending on who is doing the operation.
// Co-manager and admin - mark user deleted.
$sql = "update tt_groups set status = NULL where id = $user->group_id";
$affected = $mdb2->exec($sql);
if (is_a($affected, 'PEAR_Error'))
$sql = "update tt_groups set status = NULL where id = $user->group_id";
$affected = $mdb2->exec($sql);
if (is_a($affected, 'PEAR_Error'))