Jump to content
MakeWebGames

whats wrong with this?


ngeinc

Recommended Posts

when i installed v2.0 i get this error for every page go on to : Notice: Undefined index: name in /home/ngewars/public_html/staff_items.php on line 348

 

or Notice: Undefined index: attacking in /home/ngewars/public_html/header.php on line 117

 

anyone can help me?

Link to comment
Share on other sites

Comes across not checking if sessions are actually set before using them..

in MCC

$_SESSION['attacking'] is being checked in the header constantly, yet it's only set in attack.php which is only used if a player leaves before finishing the attack.

So like Alain said remove notices from being displayed or check if things are set using isset();

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.

×
×
  • Create New...