Skip to content

Commit 37fa05a

Browse files
committed
fix fatal error
1 parent c7fbc67 commit 37fa05a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/design-library/init.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,11 @@ public function get_design_library( $request ) {
333333

334334
public function get_disabled_blocks() {
335335
$disabled_blocks = get_option( 'stackable_block_states' );
336+
337+
if ( $disabled_blocks == false ) {
338+
return false;
339+
}
340+
336341
$disabled_blocks = array_filter( $disabled_blocks, function ( $block_state ) { return $block_state == 3; } );
337342
if ( count( $disabled_blocks ) ) {
338343
$disabled_blocks = array_keys( $disabled_blocks );

0 commit comments

Comments
 (0)