diff --git a/src/views/gutenberg-blocks/class-tainacan-gutenberg-block.php b/src/views/gutenberg-blocks/class-tainacan-gutenberg-block.php index 8e4abd1ea..fad4a176f 100644 --- a/src/views/gutenberg-blocks/class-tainacan-gutenberg-block.php +++ b/src/views/gutenberg-blocks/class-tainacan-gutenberg-block.php @@ -219,6 +219,7 @@ function tainacan_blocks_get_plugin_js_settings(){ $Tainacan_Collections = \Tainacan\Repositories\Collections::get_instance(); $collections = $Tainacan_Collections->fetch( [], 'OBJECT' ); + $cpts = []; foreach ( $collections as $col ) { $cpts[$col->get_db_identifier()] = $col->get_name(); }