From b76789853cc57c72fe1d09099e1d053cabd8be51 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 5 Sep 2024 11:17:05 +0700 Subject: [PATCH] Update ffprobe_info.php --- library/ajax/ffprobe_info.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ajax/ffprobe_info.php b/library/ajax/ffprobe_info.php index 556e81f1d..38ab0de20 100644 --- a/library/ajax/ffprobe_info.php +++ b/library/ajax/ffprobe_info.php @@ -17,12 +17,12 @@ if (!$bb_cfg['torr_server']['enabled']) { $this->ajax_die($lang['MODULE_OFF']); } -$attach_id = $this->request['attach_id']; +$attach_id = $this->request['attach_id'] ?? ''; if (empty($attach_id) || !is_numeric($attach_id)) { $this->ajax_die($lang['INVALID_ATTACH_ID']); } -$file_index = $this->request['file_index']; +$file_index = $this->request['file_index'] ?? ''; if (empty($file_index) || !is_numeric($file_index)) { $this->ajax_die("Invalid file index: $file_index"); }