mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/16416] Fix non-numeric value encountered - ACP attachments settings
PHPBB3-16416
This commit is contained in:
@@ -226,14 +226,9 @@ class acp_attachments
|
|||||||
{
|
{
|
||||||
$size_var = $request->variable($config_name, '');
|
$size_var = $request->variable($config_name, '');
|
||||||
|
|
||||||
if (!empty($config_value))
|
$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);
|
$this->new_config[$config_name] = $config_value = ($size_var == 'kb') ? round($config_value * 1024) : (($size_var == 'mb') ? round($config_value * 1048576) : $config_value);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$config_value = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($submit)
|
if ($submit)
|
||||||
|
Reference in New Issue
Block a user