");
$t->selectAdd();
$t->selectAdd("distinct(group_id), {$grp->tableName()}.name as name");
+ $t->whereAdd('group_id IS NOT NULL');
$t->find();
if ($arrayof == 'group_id' && !count($ret)) {
$ret = array(0); /// default if they are not a member of any group.
}
-
+ //var_dump($ret);
return $ret;
}