4 * this is loaded by the pman admin..
6 * it checks that required variables are set...
14 if(!empty($_REQUEST['_core_skip_check'])){
18 $group = DB_DataObject::factory('groups');
20 // group should be auto created - by update-database...
22 if(!$group->get('name', 'core-person-signup-bcc')){
23 die("group core-person-signup-bcc does not exist : add ?_core_skip_check=1 to bypass this check");
26 $p = DB_DataObject::factory('Person');
29 $member = DB_DataObject::factory('group_members');
30 $member->group_id = $group->id;
31 if ($member->count()) {
37 // if we only have one member - then add it .... (it's the admin, and they can modify this later.. - after they get annoyed with it..
38 if ($p->count() == 1) {
40 $member = DB_DataObject::factory('group_members');
41 $member->group_id = $group->id;
42 $member->person_id = $p->id;
47 // only display if we have members..
48 die("group core-person-signup-bcc does not have any members : add ?_core_skip_check=1 to bypass this check");