MyBB Community Forums

Full Version: Notices
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When you enable error reporting you get a bunch of notices. Is there something wrong with the code?
Well it's just not 'perfect' code. There are many instances when there are things like:
if($mybb->input['submittedvar'])
(This returns a notice if the variable doesn't exist).

Where 'perfect' code would be:
if(isset($mybb->input['submittedvar']))
.