mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
simpler code, useless to convert value twice
git-svn-id: http://piwigo.org/svn/trunk@8253 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user