Changeset 8253


Ignore:
Timestamp:
Dec 23, 2010, 3:14:40 PM (10 years ago)
Author:
plg
Message:

simpler code, useless to convert value twice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_upload.inc.php

    r8249 r8253  
    147147    if (!isset($conf[$param_name]))
    148148    {
    149       $param_value = boolean_to_string($param['default']);
     149      $conf[$param_name] = $param['default'];
    150150     
    151151      array_push(
     
    153153        array(
    154154          'param' => $param_name,
    155           'value' => $param_value,
     155          'value' => boolean_to_string($param['default']),
    156156          )
    157157        );
    158 
    159       $conf[$param_name] = $param_value;
    160       if (is_bool($param['default']))
    161       {
    162         $conf[$param_name] = get_boolean($param_value);
    163       }
    164158    }
    165159  }
Note: See TracChangeset for help on using the changeset viewer.