mirror of
https://github.com/torrentpier/torrentpier
synced 2025-07-05 20:41:41 -07:00
fix(info.php): Undefined array key "show" (#1836)
This commit is contained in:
parent
b4624aec5a
commit
f8c4e8fb14
1 changed files with 2 additions and 1 deletions
3
info.php
3
info.php
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue