Support » Plugin: Page-list » [Small bug fix] Error if page list is empty

  • Resolved jrf

    (@jrf)


    Hiya,

    Happy to found your plugin. I use it for sub-menu’s in the sidebar and found some errors in my errorlog.

    To fix, find line 318 in page-list.php:

    $offset_count = 0;
    foreach($list_pages as $page){

    And replace with:

    $offset_count = 0;
    if( $list_pages !== false && count( $list_pages ) > 0 ){
    foreach($list_pages as $page){

    And line 419:

    }
    }

    Replace with:

    }
    }
    }

    (I didn’t add the extra indentation which would be needed for neat code 😉 )

    Hope this helps!

    Smile,
    Juliette

    http://wordpress.org/extend/plugins/page-list/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author webvitalii

    (@webvitaly)

    Thank you very much for your feedback.
    This fix will be added to next plugin’s commit.

    Excellent. Thank you.

    jrf

    (@jrf)

    Unfortunately the fix is still missing from the plugin…. next version… ?

    Plugin Author webvitalii

    (@webvitaly)

    Fixed.

    I updated the code in the trunk, but I did not updated the plugin version, because it is minor changes.
    So users will not see the update notice but all next downloads will have the updated version.

    So if you want to have the updated version – you should re-install the plugin.

    Plugin Author webvitalii

    (@webvitaly)

    Oh, it is already 8 months passed…

    We need urgently to invent a time machine! 🙂

    jrf

    (@jrf)

    Okidoki, understood. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Small bug fix] Error if page list is empty’ is closed to new replies.