Support » Plugin: Paginated Gallery » [Plugin: Paginated Gallery] WP_DEBUG notices

  • ResolvedModerator cubecolour



    When WP_DEBUG is enabled, activating this plugin causes any page with galleries to get some debug notices shown eg:

    Notice: Undefined index: galleryPage in .../wp-content/plugins/paginated-gallery/paginated-gallery.php on line 104
    Notice: Undefined index: id in .../wp-content/plugins/paginated-gallery/paginated-gallery.php on line 138

    replace line 104

    $currentPage = intval($_GET['galleryPage']);


    if (isset($_GET ['galleryPage'])) {
    	$currentPage = intval($_GET ['galleryPage']);

    replace line 138

    $id = $options['id'];


    $id = intval( isset ($options['id']) );

    These changes seem to fix the notices

  • The topic ‘[Plugin: Paginated Gallery] WP_DEBUG notices’ is closed to new replies.