mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
fix(Attach.php): Trying to access array offset on value of type null (#2075)
This commit is contained in:
parent
d690447cdb
commit
abb2b242b7
1 changed files with 4 additions and 3 deletions
|
@ -788,9 +788,10 @@ class Attach
|
||||||
}
|
}
|
||||||
DB()->sql_freeresult($result);
|
DB()->sql_freeresult($result);
|
||||||
|
|
||||||
$allowed_filesize = $row['max_filesize'] ?: $attach_config['max_filesize'];
|
$allowed_filesize = $row['max_filesize'] ?? $attach_config['max_filesize'];
|
||||||
$cat_id = (int)$row['cat_id'];
|
$cat_id = isset($row['cat_id']) ? (int)$row['cat_id'] : 0;
|
||||||
$auth_cache = trim($row['forum_permissions']);
|
$auth_cache = isset($row['forum_permissions']) ? trim($row['forum_permissions']) : '';
|
||||||
|
$row['allow_group'] = $row['allow_group'] ?? 0;
|
||||||
|
|
||||||
// check Filename
|
// check Filename
|
||||||
if (preg_match("#[\\/:*?\"<>|]#i", $this->filename)) {
|
if (preg_match("#[\\/:*?\"<>|]#i", $this->filename)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue