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

Commit 2c7e39b

Browse files
committed
Fix PHP 7 support
1 parent a2c23a5 commit 2c7e39b

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
@@ -2810,7 +2810,7 @@ function ( $table ) {
28102810
* Otherwise, if a information_schema table uses a custom name
28112811
* for the name/table_name column, the table would be removed.
28122812
*/
2813-
$table_name = true;
2813+
$table_name = '';
28142814
$table = (array) $table;
28152815
if ( isset( $table['Name'] ) ) {
28162816
$table_name = $table['Name'];
@@ -2819,7 +2819,7 @@ function ( $table ) {
28192819
} elseif ( isset( $table['TABLE_NAME'] ) ) {
28202820
$table_name = $table['TABLE_NAME'];
28212821
}
2822-
return $table_name && ! array_key_exists( $table_name, $this->sqlite_system_tables );
2822+
return ! array_key_exists( $table_name, $this->sqlite_system_tables );
28232823
},
28242824
ARRAY_FILTER_USE_BOTH
28252825
)

0 commit comments

Comments
 (0)