Ignore:
Timestamp:
May 24, 2011, 11:17:20 PM (13 years ago)
Author:
grum
Message:

fix bug:2311, bug:2312 (random pict bug)

File:
1 edited

Legend:

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

    r10247 r11036  
    7979        ($block=$menu->get_block('mbAMM_randompict'))!=null) and
    8080        ($user['nb_total_images']>0) and
    81         isset($this->config['amm_randompicture_title'][$user['language']])
     81        isset($this->config['amm_randompicture_title'][$user['language']]) and
     82        $this->displayRandomImageBlock
    8283      )
    8384    {
     
    352353    $this->registeredBlocks=$this->getRegisteredBlocks(true);
    353354
     355    if(!isset($this->registeredBlocks['mbAMM_randompict'])) $this->displayRandomImageBlock=false;
     356
    354357    foreach($blocks[0]->get_registered_blocks() as $key => $block)
    355358    {
Note: See TracChangeset for help on using the changeset viewer.