File tree Expand file tree Collapse file tree
libraries/classes/Controllers Expand file tree Collapse file tree Original file line number Diff line number Diff 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
14155.2.0 (2022-05-10)
1516- issue #16521 Upgrade Bootstrap to version 5
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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>
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>
Original file line number Diff line number Diff line change 203203 ShowFunctionFields: bool,
204204 ShowHint: bool,
205205 ShowPropertyComments: bool,
206+ ShowServerInfo: bool,
206207 ShowSQL: bool,
207208 ShowStats: bool,
208209 TextareaAutoSelect: bool,
You can’t perform that action at this time.
0 commit comments