mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03: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:
parent
16371ed5fd
commit
c266feea0b
1 changed files with 2 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue