Changeset 8971


Ignore:
Timestamp:
Jan 29, 2011, 1:51:01 PM (9 years ago)
Author:
grum
Message:

release 3.0.0
fix bug on install/update process

File:
1 edited

Legend:

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

    r8962 r8971  
    310310      pwg_query("UPDATE ".CONFIG_TABLE." SET value = '' WHERE param='blk_menubar';");
    311311
    312       if($updateMenu)
     312      if($updateMenu and $conf['blk_menubar']!='')
    313313      {
    314314        $tmp=unserialize($conf['blk_menubar']);
     
    325325    private function restoreMenuConfig()
    326326    {
    327       pwg_query("UPDATE ".CONFIG_TABLE." SET value = '".pwg_db_real_escape_string($this->config['amm_old_blk_menubar'])."' WHERE param='blk_menubar';");
     327      if($this->config['amm_old_blk_menubar']!='')
     328        pwg_query("UPDATE ".CONFIG_TABLE." SET value = '".pwg_db_real_escape_string($this->config['amm_old_blk_menubar'])."' WHERE param='blk_menubar';");
    328329    }
    329330
Note: See TracChangeset for help on using the changeset viewer.