1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13904] Improve code coverage

PHPBB3-13904
This commit is contained in:
Marc Alexander
2015-09-07 22:52:20 +02:00
parent 00e5ff9e2e
commit e60c8a5a8b
3 changed files with 98 additions and 3 deletions

View File

@@ -235,10 +235,10 @@ class remote extends base
{
$max_file_size = $this->php_ini->getString('upload_max_filesize');
if (!empty($max_filesize))
if (!empty($max_file_size))
{
$unit = strtolower(substr($max_file_size, -1, 1));
$max_file_size = (int) $max_filesize;
$max_file_size = (int) $max_file_size;
switch ($unit)
{