>
> > > > <? $art = mgd_list_topic_articles($topic);
> > > > while ($art->fetch()) {
> > > > $article = mgd_get_article($art->id);
> > > > $creator = $article->creator;
>
> $creator is a string (or long, in todays CVS) after this assignment.
>
> > > > $person = mgd_get_person ($creator->id);
>
> So $creator->id should give an error.
Yes, forgive me. I wrote it from my mind.
Just looked for my scripts.
It should be:
$article = mgd_get_article($art->id);
$person = mgd_get_person ($article->creator);
But anyway my idea is still the same.
To get object' creator field with no special querry.
But I think I could use some extra object (article,topic) field,
an insert there creator name, while creating object.
It could be much faster.
Piotras
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]