Skip to content

P2: PHP Notice for breathe_color_styles() #206

Description

@grappler

I hope this is the right place to report a PHP Notice with p2-breathe

I am getting the following PHP Notice with Revision 57498.

Trying to access array offset on value of type bool in inc/customizer.php line 61, 62, 64 & 65

The reason for this is this code. The get_theme_mod() is returning false by default when no settings have been saved and isset() is checking if the variable is null.

	$options = get_theme_mod( 'breathe_theme_options', null );

	if ( ! isset( $options ) )
		return;

A possible solution would be

	$options = get_theme_mod( 'breathe_theme_options', null );

	if ( ! $options )
		return;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions