[theme-reviewers] THEME: Suffusion - 3.5.4

Austin Matzko austin at pressedcode.com
Sun Jul 4 01:45:33 UTC 2010


On Sat, Jul 3, 2010 at 8:12 PM, Simon Prosser <pross at pross.org.uk> wrote:
> if ($style_settings[$mapped_style] != null) {
> $style_settings[$mapped_style] is not defined so you get the Notice.
>
> if ( isset($style_settings[$mapped_style]) ) {
> does the same thing with no errors.

Actually, you probably want to do the following instead, as it won't
let defined but null value slip through:

if ( ! empty($style_settings[$mapped_style]) ) {


More information about the theme-reviewers mailing list