Skip to content

Commit 7af014f

Browse files
Évan Goujoncerebro-alexiel
authored andcommitted
Simplify $sockets testing logic
Signed-off-by: Évan Goujon <evan.goujon@gmail.com>
1 parent d5a587d commit 7af014f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

etc/phpmyadmin/config.inc.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,8 @@
118118
$cfg['Servers'][$i]['AllowNoPassword'] = true;
119119
}
120120
for ($i = 1; isset($sockets[$i - 1]); $i++) {
121-
if (isset($sockets[$i - 1])) {
122-
$cfg['Servers'][$i]['socket'] = $sockets[$i - 1];
123-
$cfg['Servers'][$i]['host'] = 'localhost';
124-
}
121+
$cfg['Servers'][$i]['socket'] = $sockets[$i - 1];
122+
$cfg['Servers'][$i]['host'] = 'localhost';
125123
}
126124
/*
127125
* Revert back to last configured server to make

0 commit comments

Comments
 (0)