mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-12 20:02:08 +02:00
Merge pull request #5924 from 3D-I/ticket/16416
[ticket/16416] Fix non-numeric value encountered - ACP attachments
This commit is contained in:
commit
15a7a77bb6
@ -225,6 +225,9 @@ class acp_attachments
|
||||
if (in_array($config_name, array('attachment_quota', 'max_filesize', 'max_filesize_pm')))
|
||||
{
|
||||
$size_var = $request->variable($config_name, '');
|
||||
|
||||
$config_value = (int) $config_value;
|
||||
|
||||
$this->new_config[$config_name] = $config_value = ($size_var == 'kb') ? round($config_value * 1024) : (($size_var == 'mb') ? round($config_value * 1048576) : $config_value);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user