Skip to content

Commit

Permalink
fix PHP notice
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Mar 8, 2020
1 parent adeb0ad commit b1d75b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/blocks/eventbrite/eventbrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function jetpack_render_eventbrite_block( $attr, $content ) {
Jetpack_Gutenberg::load_assets_as_required( 'eventbrite' );

// Show the embedded version.
if ( empty( $attr['useModal'] ) && 'modal' !== $attr['style'] ) {
if ( empty( $attr['useModal'] ) && ( empty( $attr['style'] ) || 'modal' !== $attr['style'] ) ) {
wp_add_inline_script(
'eventbrite-widget',
"window.EBWidgets.createWidget( {
Expand Down

0 comments on commit b1d75b0

Please sign in to comment.