Ignore:
Timestamp:
Mar 28, 2010, 5:57:37 PM (14 years ago)
Author:
grum
Message:

Update the plugin for compatibility with Piwigo 2.1 and fix some bugs
feature 1384, feature 1476, feature 1541

File:
1 edited

Legend:

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

    r4499 r5421  
    305305    global $user, $template, $page;
    306306
     307    if(!array_key_exists('body_id', $page))
     308    {
     309      /*
     310       * it seems the error message reported on mantis:1476 is displayed because
     311       * the 'body_id' doesn't exist in the $page
     312       *
     313       * not abble to reproduce the error, but initializing the key to an empty
     314       * value if it doesn't exist may be a sufficient solution
     315       */
     316      $page['body_id']="";
     317    }
     318
    307319    if($this->displayRandomImageBlock && $page['body_id'] == 'theCategoryPage')
    308320    {
Note: See TracChangeset for help on using the changeset viewer.