fix(info.php): Undefined array key "show" (#1836)

This commit is contained in:
Roman Kelesidis 2025-03-06 18:58:47 +07:00 committed by GitHub
parent b4624aec5a
commit f8c4e8fb14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,8 +16,9 @@ $user->session_start();
$info = [];
$htmlDir = LANG_DIR . 'html/';
$show = isset($_REQUEST['show']) ? (string)$_REQUEST['show'] : '';
switch ((string)$_REQUEST['show'] ?? 'not_found') {
switch ($show) {
case 'advert':
$info['title'] = $lang['ADVERT'];
$info['src'] = 'advert.html';