}
}
+ $this->selectAdd("
+ (
+ SELECT
+ count(user_id)
+ FROM
+ core_group_member
+ WHERE
+ core_group.id = core_group_member.group_id
+ )
+ AS group_member_count
+ ");
}
function toEventString() {
function addMember($person,$roo = false)
{
- if ($this->name != "Empty Group") {
- $roo->jerr('Cannot the person into the empty group');
+ if ($this->name == "Empty Group") {
+ $roo->jerr('Cannot add the person into Empty Group');
}
$gm = DB_Dataobject::factory('core_group_member');
$gm->group_id = $this->id;
// groups databse is hard coded to person.. so this should not be used for other tables.????
$p = DB_Dataobject::factory( 'core_person' );
-
-
$p->whereAdd('id IN ('. implode(',', $ids) .')');
$p->active = 1;