SimplePortal
Development => Bugs => Fixed or Bogus Bugs => Topic started by: Nathaniel on July 27, 2008, 08:17:05 AM
-
Well, this is just a suggestion for removing some bugs which only occur when the mod is first installed - Before the settings are all actually defined.Basically it involves using code like the code below:
isset($modSettings['leftwidth']) ? $modSettings['leftwidth'] : default
Instead of just, which can return errors before its set in the admin pannel:$modSettings['leftwidth']
-
I don't like isset(), I usually use empty().We don't have a 0 width, so let's use empty().
-
Okay, empty() it is.I might as well start a list of the variables that return new errors with a fresh install.$modSettings['leftwidth']$modSettings['rightwidth']
-
Okay, thanks for buggin out them. I hate undefined index errors.
-
You aren't the only one who hates 'em. :P
-
I had a bit of a look through, and those are the only ones that I can find for the moment.
-
Good to hear. These bugs are everywhere, should be careful about them.
-
Fixed all.