Skip to content

Commit e748722

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
2 parents 3bb0712 + 5f9d467 commit e748722

4 files changed

Lines changed: 7 additions & 16 deletions

File tree

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ phpMyAdmin - ChangeLog
1010
- issue #17519 Fix Export pages not working in certain conditions
1111
- issue #17496 Fix error in table operation page when partitions are broken
1212
- issue #17386 Fix system memory and system swap values on Windows
13+
- issue #17517 Fix Database Server panel not getting hidden by ShowServerInfo configuration directive
1314

1415
5.2.0 (2022-05-10)
1516
- issue #16521 Upgrade Bootstrap to version 5

libraries/classes/Controllers/HomeController.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -150,20 +150,14 @@ public function __invoke(): void
150150
}
151151

152152
$databaseServer = [];
153-
if ($GLOBALS['server'] > 0) {
153+
if ($GLOBALS['server'] > 0 && $GLOBALS['cfg']['ShowServerInfo']) {
154154
$hostInfo = '';
155155
if (! empty($GLOBALS['cfg']['Server']['verbose'])) {
156-
$hostInfo .= $GLOBALS['cfg']['Server']['verbose'];
157-
if ($GLOBALS['cfg']['ShowServerInfo']) {
158-
$hostInfo .= ' (';
159-
}
156+
$hostInfo .= $GLOBALS['cfg']['Server']['verbose'] . ' (';
160157
}
161158

162-
if ($GLOBALS['cfg']['ShowServerInfo'] || empty($GLOBALS['cfg']['Server']['verbose'])) {
163-
$hostInfo .= $this->dbi->getHostInfo();
164-
}
165-
166-
if (! empty($GLOBALS['cfg']['Server']['verbose']) && $GLOBALS['cfg']['ShowServerInfo']) {
159+
$hostInfo .= $this->dbi->getHostInfo();
160+
if (! empty($GLOBALS['cfg']['Server']['verbose'])) {
167161
$hostInfo .= ')';
168162
}
169163

psalm-baseline.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,13 +2199,12 @@
21992199
</MixedArrayAssignment>
22002200
</file>
22012201
<file src="libraries/classes/Controllers/HomeController.php">
2202-
<InvalidArrayOffset occurrences="10">
2202+
<InvalidArrayOffset occurrences="9">
22032203
<code>$GLOBALS['cfg']['LoginCookieValidityDisableWarning']</code>
22042204
<code>$GLOBALS['cfg']['NavigationDisplayServers']</code>
22052205
<code>$GLOBALS['cfg']['PmaNoRelation_DisableWarning']</code>
22062206
<code>$GLOBALS['cfg']['ShowChgPassword']</code>
22072207
<code>$GLOBALS['cfg']['ShowPhpInfo']</code>
2208-
<code>$GLOBALS['cfg']['ShowServerInfo']</code>
22092208
<code>$GLOBALS['cfg']['SuhosinDisableWarning']</code>
22102209
<code>$GLOBALS['cfg']['ThemeManager']</code>
22112210
<code>$GLOBALS['cfg']['TranslationWarningThreshold']</code>
@@ -2231,10 +2230,6 @@
22312230
<PossiblyNullArrayOffset occurrences="1">
22322231
<code>$GLOBALS['language_stats']</code>
22332232
</PossiblyNullArrayOffset>
2234-
<PossiblyUndefinedArrayOffset occurrences="2">
2235-
<code>$GLOBALS['cfg']['ShowServerInfo']</code>
2236-
<code>$GLOBALS['cfg']['ShowServerInfo']</code>
2237-
</PossiblyUndefinedArrayOffset>
22382233
<UnusedVariable occurrences="1">
22392234
<code>$collationsList</code>
22402235
</UnusedVariable>

psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@
203203
ShowFunctionFields: bool,
204204
ShowHint: bool,
205205
ShowPropertyComments: bool,
206+
ShowServerInfo: bool,
206207
ShowSQL: bool,
207208
ShowStats: bool,
208209
TextareaAutoSelect: bool,

0 commit comments

Comments
 (0)