Jump to content
MakeWebGames

Error: Forums


gmoore
 Share

Recommended Posts

If you remove all the posts, there is an error in the user Forums display.

Error: Undefined offset: 0

Error in "002/www/modules/forums/content.php"

Line 350

It doesn't get this error by default because there are forum posts in the default installation.

(I have to run now, if someone doesn't send a fix I will post what I come up with tonight)

Greg

Link to comment
Share on other sites

350-357

	if(!$r2->EOF){
       	echo "<td><a href='index.php?p=forums&t={$result->fields[4]}'>" . htmlentities($r2->fields[0]) . "</a></td>";
       	if (in_array("view_player", $modules))
           	echo "<td><a href='index.php?p=view_player&id={$r2->fields[2]}'>{$r2->fields[1]}</a></td>";
       	else
           	echo "<td>{$r2->fields[1]}</td>";
       		echo "<td>" . FormatDate($r2->fields[3]) . "</a></td>";
	}

 

Added at 350 if(!$r2->EOF){

and } at 357

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...