mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update posting_attachments.php
This commit is contained in:
parent
8b41321df3
commit
dc6ee05fb9
@ -929,7 +929,7 @@ class attach_parent
|
||||
|
||||
//bt
|
||||
// Block uploading more than one torrent file
|
||||
$uploaded_torrents = isset(array_count_values($this->attachment_extension_list)[TORRENT_EXT]) ? array_count_values($this->attachment_extension_list)[TORRENT_EXT] : 0;
|
||||
$uploaded_torrents = isset(array_count_values($this->attachment_extension_list)[TORRENT_EXT]) ? (int) array_count_values($this->attachment_extension_list)[TORRENT_EXT] : 0;
|
||||
if (!$error && $this->extension === TORRENT_EXT && ($uploaded_torrents >= 1))
|
||||
{
|
||||
$error = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user