Skip to content

Commit 41a59f2

Browse files
committed
PLUGINS-7030
1 parent d1eb1a1 commit 41a59f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/gutenberg/class-ecwid-gutenberg-block-store.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function render_callback( $params ) {
165165
$is_profile_default = $profile_default === $value;
166166

167167
if ( ! $is_profile_default ) {
168-
if ( @$attribute['type'] == 'boolean' ) {
168+
if ( isset( $attribute['type'] ) && $attribute['type'] == 'boolean' ) {
169169
$config_js[] = 'window.ec.storefront.' . esc_js( $name ) . '=' . ( $value === true ? 'true' : 'false' ) . ';';
170170
} else {
171171
$config_js[] = 'window.ec.storefront.' . esc_js( $name ) . "='" . esc_js( $value ) . "';";

0 commit comments

Comments
 (0)