SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: Nathaniel on July 27, 2008, 08:17:05 AM

Title: New Install Bugs.
Post 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:
Code: [Select]
isset($modSettings['leftwidth']) ? $modSettings['leftwidth'] : defaultInstead of just, which can return errors before its set in the admin pannel:
Code: [Select]
$modSettings['leftwidth']
Title: Re: New Install Bugs.
Post by: [SiNaN] on July 27, 2008, 08:20:18 AM
I don't like isset(), I usually use empty().We don't have a 0 width, so let's use empty().
Title: Re: New Install Bugs.
Post by: Nathaniel on July 27, 2008, 08:28:21 AM
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']
Title: Re: New Install Bugs.
Post by: [SiNaN] on July 27, 2008, 08:36:03 AM
Okay, thanks for buggin out them. I hate undefined index errors.
Title: Re: New Install Bugs.
Post by: ccbtimewiz on July 27, 2008, 10:28:42 AM
You aren't the only one who hates 'em.  :P
Title: Re: New Install Bugs.
Post by: Nathaniel on July 28, 2008, 06:24:22 AM
I had a bit of a look through, and those are the only ones that I can find for the moment.
Title: Re: New Install Bugs.
Post by: [SiNaN] on July 28, 2008, 01:02:31 PM
Good to hear. These bugs are everywhere, should be careful about them.
Title: Re: New Install Bugs.
Post by: [SiNaN] on August 02, 2008, 07:37:37 AM
Fixed all.
SimplePortal 2.3.8 © 2008-2024, SimplePortal