From a6f98614beaba75e281f2594f44b62c078c3ee8d Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Fri, 29 Aug 2014 16:43:39 -0500 Subject: [PATCH] lint: Fix unused uninitialized var --- include/class.forms.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/class.forms.php b/include/class.forms.php index 99fcd2866..27c6eee2a 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -1245,7 +1245,7 @@ class FileUploadField extends FormField { function getConfigurationOptions() { // Compute size selections - $sizes = array('262144' => '— Small —'); + $sizes = array('262144' => '— '.__('Small').' —'); $next = 512 << 10; $max = strtoupper(ini_get('upload_max_filesize')); $limit = (int) $max; @@ -1256,7 +1256,6 @@ class FileUploadField extends FormField { while ($next <= $limit) { // Select the closest, larger value (in case the // current value is between two) - $diff = $next - $config['max_file_size']; $sizes[$next] = Format::file_size($next); $next *= 2; } -- GitLab