Changeset 9027


Ignore:
Timestamp:
02/01/11 00:41:00 (9 years ago)
Author:
grum
Message:

release 3.0.1
fix bug on config import when update from 2.x to 3.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMenuManager/amm_install.class.inc.php

    r9026 r9027  
    289289      pwg_query($sql); 
    290290 
     291 
     292      if(!isset($user['language']) or $user['language']=='') 
     293      { 
     294        $sql="SELECT language FROM ".USERS_INFOS_TABLE." WHERE id='1';"; 
     295        pwg_query($sql); 
     296        if($result) 
     297        { 
     298          while($row=pwg_db_fetch_assoc($result)) 
     299          { 
     300            $user['language']=$row['language']; 
     301          } 
     302        } 
     303      } 
    291304      $sql="DELETE FROM `".$this->tables['personalised']."` WHERE lang!='".$user['language']."';"; 
    292305      pwg_query($sql); 
Note: See TracChangeset for help on using the changeset viewer.