Skip to content

Commit e14bb65

Browse files
committed
Check if $_ENV['WP_SQLITE_AST_DRIVER'] is defined
1 parent 6452601 commit e14bb65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

constants.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
}
5454

5555
// Allow enabling the SQLite AST driver via environment variable.
56-
if ( ! defined( 'WP_SQLITE_AST_DRIVER' ) && 'true' === $_ENV['WP_SQLITE_AST_DRIVER'] ) {
56+
if ( ! defined( 'WP_SQLITE_AST_DRIVER' ) && isset( $_ENV['WP_SQLITE_AST_DRIVER'] ) && 'true' === $_ENV['WP_SQLITE_AST_DRIVER'] ) {
5757
define( 'WP_SQLITE_AST_DRIVER', true );
5858
}

0 commit comments

Comments
 (0)