Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
improve check
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed Oct 9, 2023
1 parent 34e8c52 commit 5d1a7bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Domain/Services/FeatureGating.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public static function get_experimental_flag() {
*/
public function is_block_templates_controller_refactor_enabled() {
$conf = parse_ini_file( __DIR__ . '/../../../blocks.ini' );
return $this->is_development_environment() && true === (bool) $conf['use_block_templates_controller_refactor'];
return $this->is_development_environment() && isset( $conf['use_block_templates_controller_refactor'] ) && true === (bool) $conf['use_block_templates_controller_refactor'];
}

}

0 comments on commit 5d1a7bb

Please sign in to comment.