> <?
>
> $id = $person->id;
> $pm = mgd_list_memberships( $id );
>
> print_r($pm);
>
> ?>
>
> what that returns?
nothing or false.
I used the code below.
$user definitevly contains the midgard person object of the currently
authenticated user.
($user->id = 22)
if ($user) {
$ms = mgd_list_memberships( $user->id);
print_r($ms);
if ($ms) {
while( $ms->fetch() ){
print $ms->gid;
$usergroups[$ms->gid]=$ms->name;
}
}
}
> $topic->owner ?
Ok, rtfm problem ;-)
Thank you!
/Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]