X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fmysql.php;h=c1e403cd3a094aa8027d343c9ee4e6c2ec8178c1;hp=34a6cb69518777efed983af1e3a1dda98c7e507b;hb=7afced64454ad30d688540f7626448ac2faefebb;hpb=2a9a2533fa61847c5235c5c64f546c7fc360b988 diff --git a/maintenance/mysql.php b/maintenance/mysql.php index 34a6cb6951..c1e403cd3a 100644 --- a/maintenance/mysql.php +++ b/maintenance/mysql.php @@ -137,9 +137,7 @@ class MysqlMaintenance extends Maintenance { } elseif ( substr_count( $realServer, ':' ) == 1 ) { // If we have a colon and something that's not a port number // inside the hostname, assume it's the socket location - $hostAndSocket = explode( ':', $realServer, 2 ); - $realServer = $hostAndSocket[0]; - $socket = $hostAndSocket[1]; + list( $realServer, $socket ) = explode( ':', $realServer, 2 ); } if ( $dbName === false ) {