Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit d8a8be1

Browse files
committed
Fix PHP 7 support
1 parent 5e531aa commit d8a8be1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wp-includes/sqlite/class-wp-sqlite-translator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2820,7 +2820,7 @@ function ( $table ) {
28202820
* Otherwise, if a information_schema table uses a custom name
28212821
* for the name/table_name column, the table would be removed.
28222822
*/
2823-
$table_name = true;
2823+
$table_name = '';
28242824
$table = (array) $table;
28252825
if ( isset( $table['Name'] ) ) {
28262826
$table_name = $table['Name'];
@@ -2829,7 +2829,7 @@ function ( $table ) {
28292829
} elseif ( isset( $table['TABLE_NAME'] ) ) {
28302830
$table_name = $table['TABLE_NAME'];
28312831
}
2832-
return $table_name && ! array_key_exists( $table_name, $this->sqlite_system_tables );
2832+
return ! array_key_exists( $table_name, $this->sqlite_system_tables );
28332833
},
28342834
ARRAY_FILTER_USE_BOTH
28352835
)

0 commit comments

Comments
 (0)