diff options
author | plegall <plg@piwigo.org> | 2010-12-23 14:14:40 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-12-23 14:14:40 +0000 |
commit | c266feea0b0fc268af561309aa4b1179eb3035cd (patch) | |
tree | 9a10ac7a4a2df4133281a6f859ae10193dba91c1 /admin/include | |
parent | 16371ed5fd9f0df6e8c3d6d349845bc2ec057081 (diff) |
simpler code, useless to convert value twice
git-svn-id: http://piwigo.org/svn/trunk@8253 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/include/functions_upload.inc.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/admin/include/functions_upload.inc.php b/admin/include/functions_upload.inc.php index 2dc21d7bf..84c00a90e 100644 --- a/admin/include/functions_upload.inc.php +++ b/admin/include/functions_upload.inc.php @@ -146,21 +146,15 @@ function prepare_upload_configuration() if (!isset($conf[$param_name])) { - $param_value = boolean_to_string($param['default']); + $conf[$param_name] = $param['default']; array_push( $inserts, array( 'param' => $param_name, - 'value' => $param_value, + 'value' => boolean_to_string($param['default']), ) ); - - $conf[$param_name] = $param_value; - if (is_bool($param['default'])) - { - $conf[$param_name] = get_boolean($param_value); - } } } |