Show
Ignore:
Timestamp:
04/15/11 21:41:42 (2 years ago)
Author:
Eric
Message:

bug 2265 fixed : Add of a new option to display or not user's password in information email
Improving UAM version check for db upgrade
Version 2.20.4 hard coded

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/trunk/include/upgradedb.inc.php

    r10144 r10391  
    398398  } 
    399399} 
     400 
     401/* upgrade from 2.20.3 to 2.20.4 */ 
     402/* ***************************** */ 
     403function upgrade_2203_2204() 
     404{ 
     405  global $conf; 
     406 
     407  // Upgrading options 
     408  $query = ' 
     409SELECT value 
     410  FROM '.CONFIG_TABLE.' 
     411WHERE param = "UserAdvManager" 
     412;'; 
     413 
     414  $result = pwg_query($query); 
     415  $conf_UAM = pwg_db_fetch_assoc($result); 
     416     
     417  $Newconf_UAM = unserialize($conf_UAM['value']); 
     418   
     419  $Newconf_UAM[35] = 'false'; 
     420   
     421  $update_conf = serialize($Newconf_UAM); 
     422     
     423  $query = ' 
     424UPDATE '.CONFIG_TABLE.' 
     425SET value="'.addslashes($update_conf).'" 
     426WHERE param="UserAdvManager" 
     427LIMIT 1 
     428;'; 
     429 
     430        pwg_query($query); 
     431} 
    400432?>