mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Fixed download counter for torrents (#1346)
* Fixed download counter for torrents * Updated * Updated * Update CHANGELOG.md
This commit is contained in:
parent
f993983eb0
commit
66b9b7bdc4
7 changed files with 22 additions and 14 deletions
|
@ -166,12 +166,13 @@ elseif ($submit && $mode == 'group' && (!empty($_POST['auth']) && is_array($_POS
|
|||
if ($mode == 'user' && (!empty($_POST['username']) || $user_id)) {
|
||||
$page_cfg['quirks_mode'] = true;
|
||||
|
||||
$this_userdata = false;
|
||||
if (!empty($_POST['username'])) {
|
||||
$this_userdata = get_userdata($_POST['username'], true);
|
||||
$user_id = $this_userdata ? $this_userdata['user_id'] : false;
|
||||
} else {
|
||||
} elseif (!empty($user_id)) {
|
||||
$this_userdata = get_userdata($user_id);
|
||||
}
|
||||
|
||||
if (!$this_userdata) {
|
||||
bb_die($lang['NO_SUCH_USER']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue