Minor improvements (#1717)

* Minor improvements

* Update callseed.php

* Update CHANGELOG.md

* Update index_data.php
This commit is contained in:
Roman Kelesidis 2024-12-19 00:06:59 +07:00 committed by GitHub
commit 86e4b04333
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 4 deletions

View file

@ -17,6 +17,10 @@ if (!$bb_cfg['torr_server']['enabled']) {
$this->ajax_die($lang['MODULE_OFF']);
}
if ($bb_cfg['torr_server']['disable_for_guest'] && IS_GUEST) {
$this->ajax_die($lang['NEED_TO_LOGIN_FIRST']);
}
$attach_id = $this->request['attach_id'] ?? '';
if (empty($attach_id) || !is_numeric($attach_id)) {
$this->ajax_die($lang['INVALID_ATTACH_ID']);