Ignore:
Timestamp:
Jun 10, 2013, 4:03:20 PM (7 years ago)
Author:
plg
Message:

simpler code (proposed by mistic100)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/automatic_size/main.inc.php

    r23125 r23126  
    3434    );
    3535
    36   foreach (array_keys($asize_conf_default_values) as $key)
     36  foreach ($asize_conf_default_values as $key => $value)
    3737  {
    3838    if (!isset($conf[$key]))
    3939    {
    40       $conf[$key] = $asize_conf_default_values[$key];
     40      $conf[$key] = $value;
    4141    }
    4242  }
Note: See TracChangeset for help on using the changeset viewer.