X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.php;fp=Pman.php;h=f106b577237bb9e243989364577ff0f7987a5c83;hb=4eeae876c7fb0b13ea0f6d7e336e757c82ebc47e;hp=f7c77781d72bb362be9f3decaa500f64ace4e973;hpb=8d84b53c7a40648fb0343afc0cb37660b8e13b9f;p=Pman.Core diff --git a/Pman.php b/Pman.php index f7c77781..f106b577 100644 --- a/Pman.php +++ b/Pman.php @@ -35,12 +35,18 @@ class Pman_Core_Pman { // not got members.. // 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.. - + if ($p->count() == 1) { + $p->find(true); + $member = DB_DataObject::factory('group_members'); + $member->group_id = $group->id; + $member->person_id = $p->id; + $member->insert(); + return; + } // only display if we have members.. - if($p->count() && !$member->count()){ - die("group core-person-signup-bcc does not have any members : add ?_core_skip_check=1 to bypass this check"); - } + die("group core-person-signup-bcc does not have any members : add ?_core_skip_check=1 to bypass this check"); + }