$topic cannot be empty as I display in html the desired id value one line previous to accessing $topic->id to no avail. 24: ?><DIV align="center"><P>&(topic.code:h);</P></DIV><br><br>&(topic.id);<? 25: $topicNum = $topic->id; * Dion Vansevenant <[EMAIL PROTECTED]> [000809 16:54]: > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > [...snip...] > > > > Output: > > Warning: $topic is not an object in dynamiccontent on line 25 > > > > Although you are checking if topic is set on lilne 7 of the code you posted, > I seem to recall that although the variable is set, it may not contain > anything. Not quite sure as I am a newbie myself, but anytime I've received > this error so far is because the variable I was trying to use did not > contain anything. > > You may want to try changing line 7 to: > > 7: if (!empty($topic)) > > > Hope that helps. > > Dion > > ************************************************************************* > * Dion Vansevenant * > * Systems & Technology Analyst [EMAIL PROTECTED] * > * RoweCom Canada Tel: (519) 472-1005 * > * P.O. Box 2382 Fax: (519) 472-1072 * > * London, ON N6A 5A7 www.rowecom.ca * > * Canada * > ************************************************************************* > > > -- > This is The Midgard Project's mailing list. For more information, > please visit the project's web site at http://www.midgard-project.org > > To unsubscribe the list, send an empty email message to address > [EMAIL PROTECTED] > > -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
