Skip to content

Commit

Permalink
[CMSP-459] bugfix: re-add missing else (pantheon-systems#437)
Browse files Browse the repository at this point in the history
* re-add missing else

* use the already-defined value of $port instead of hard-coding

* remove ternary in favor of elseif
  • Loading branch information
jazzsequence committed Feb 18, 2025
1 parent 06daf05 commit e228c87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,8 @@ public function build_client_parameters( $redis_server ) {
// port must be null or socket won't connect.
unset( $redis_server['port'] );
$port = null;
} elseif ( ! empty( $redis_server['port'] ) ) { // tcp connection.
$port = $redis_server['port'];
}

$defaults = [
Expand Down

0 comments on commit e228c87

Please sign in to comment.