mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-23 06:35:45 -07:00
Update ffprobe_info.php
This commit is contained in:
parent
fec6582c78
commit
3fb99b4076
1 changed files with 4 additions and 2 deletions
|
@ -17,11 +17,13 @@ if (!$bb_cfg['torr_server']['enabled']) {
|
|||
$this->ajax_die($lang['MODULE_OFF']);
|
||||
}
|
||||
|
||||
if (!$attach_id = (int)$this->request['attach_id'] or !is_numeric($attach_id)) {
|
||||
$attach_id = $this->request['attach_id'];
|
||||
if (empty($attach_id) || !is_numeric($attach_id)) {
|
||||
$this->ajax_die($lang['INVALID_ATTACH_ID']);
|
||||
}
|
||||
|
||||
if (!$file_index = (int)$this->request['file_index'] or !is_numeric($file_index)) {
|
||||
$file_index = $this->request['file_index'];
|
||||
if (empty($file_index) || !is_numeric($file_index)) {
|
||||
$this->ajax_die("Invalid file index: $file_index");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue