Ignore:
Timestamp:
Jun 15, 2010, 10:46:56 AM (14 years ago)
Author:
vdigital
Message:

Fix: Notice: Undefined index: name in .../plugins/Panoramas/AS_Panorama.php on line 47
Fix: Panorama / Panoramas
Fix: Panoramas are disconnected when picture widths are lower than the viewport width

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Panoramas/AS_Panorama.php

    r6527 r6533  
    4545      $asp = & $conf['AS_panorama'];
    4646      $picture = $template->get_template_vars('current');
    47       $picture['TITLE'] = $asp['name'];
    48       $template->assign('current', $picture);
    49       $template->assign( array( 'ASP' => $asp, ) );
     47          if ( isset($asp['name']) ) {
     48                  $picture['TITLE'] = $asp['name'];
     49                  $template->assign('current', $picture);
     50                  $template->assign( array( 'ASP' => $asp, ) );
     51          }
    5052    }
    5153  }
     
    5961        array_push($menu,
    6062            array(
    61                 'NAME' => 'Simple Panorama',
     63                'NAME' => 'Panoramas',
    6264                'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/AS_Panorama_admin.php')
    6365            )
Note: See TracChangeset for help on using the changeset viewer.