X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Fmysql.php;h=c1e403cd3a094aa8027d343c9ee4e6c2ec8178c1;hb=ae6e0c006e26680ea43d9f7a8ea60b761db036c5;hp=34a6cb69518777efed983af1e3a1dda98c7e507b;hpb=26e157d31135fd4c74a7e0544722a69face4d6df;p=lhc%2Fweb%2Fwiklou.git 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 ) {