Emiliano wrote:

> > 2.  If I apply a score to the subtopics from within a topic it seems that the
> > following doesn't
> >     function correctly, namely mgd_is_article_in_topic_tree seems to evaluate
> > always to true
> >     even if argv[0] is another subtopic.
> >
> >     if (mgd_is_article_in_topic_tree($topic_id,$argv[0]))
> >       { $article = mgd_get_article($argv[0]);}
>
> The score doesn't come into play when determining tree membership. Could
> you turn on MySQL logging and post what queries are being done to verify
> this membership? You should see queries like:
>
> SELECT up FROM topic WHERE id=<some number>
>
> where the last SELECT would compare the id to the topic you passed.
> Unless $topic_id is 0; all topic trees conceptually start at topic 0, so
> every article will automatically be in that topic tree.
>
> Emile

It was my fault. It was a coincidence.  Excuse me, please.
THanks for your help.

Marius


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to