Gunardi Wu wrote:
> I can't figure out why the 'if' condition lead to segfault. As the symptom does
> not occur when there are 3 (or n*3) subtopics, is there any possibility that
> the $list->fetch() will cause an segfault if the $list itself has already
> reached its end, or ...?
It seems so. Hmm. Replace the loop with
for ($eol = 0, $x=1; $x < $x_in_a_row; $x++)
{
?><td align="left" valign="top"><?php
if ($eol) { echo " </td>"; continue; }
if ($list->fetch())
{
?><a href="&(list.id);.html" >&(topic.name);</a><?php
} else { $eol = 1; echo " "; }
echo "</td>";
}
I've added this to the tutorial so it should be visible online soon.
Bye,
Emile
--
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]