Skip to content

Commit 58183c5

Browse files
authored
Merged 56 - PHP8 warnings
Automattic#56
1 parent 6ae2b31 commit 58183c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

db.php

+2
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,8 @@ public function db_connect( $query = '' ) {
602602
// Overlay $server if it was extracted from a callback
603603
if ( isset( $server ) && is_array( $server ) ) {
604604
extract( $server, EXTR_OVERWRITE );
605+
} else {
606+
$server = null;
605607
}
606608

607609
// Split again in case $server had host:port

0 commit comments

Comments
 (0)