Re: problem with mgd_list_topics
Piotras <pp-VVDi8QVAvoBWk0Htik3J/[email protected]> Wed, 21 Sep 2005 10:50:48 +0200
| Newsgroups | gmane.comp.web.midgard.user |
|---|---|
| Message-ID | <[email protected]> |
"Uung H.R Bhuwono" <[email protected]> wrote: > Hi Piotras, > > I don't know where the line 992 is because there is a lot of pageelement > included on the page. > the echo "$sahabat_topic"; give empty result and I'm hoping it will give me > Object output like what I do with echo "$ttgkami_topic"; So there are no subtopics yet. > The fatal error thing happen on these following code : > > <? > while ($sahabat_topic->fetch()) { Try "to control" it. while ( $sahabat_topic && $sahabat_topic->fetch() { /* do more */ } or if($sahabat_topic = mgd_list_topics(160)) { while ($sahabat_topic->fetch()) { /* do more */ } } Piotras