Changeset 5861

Show
Ignore:
Timestamp:
07/02/08 00:28:39 (5 years ago)
Author:
p_lindheimer
Message:

fix syntax error in install.php and don't reset default if old code is blank

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/daynight/install.php

    r5860 r5861  
    3232  $list = daynight_list(); 
    3333  foreach ($list as $item) { 
    34     $id = $item['ext'] 
    35     $fc_description = $item['dest'] 
     34    $id = $item['ext']; 
     35    $fc_description = $item['dest']; 
    3636    $fcc = new featurecode('daynight', 'toggle-mode-'.$id); 
    3737    if ($fc_description) { 
     
    4141    } 
    4242    $fcc->setDefault('*28'.$id); 
    43     if ($code != '*28') { 
     43    if ($code != '*28' && $code != '') { 
    4444      $fcc->setCode($code.$id); 
    4545    }