[Small bug fix] Error if page list is empty
-
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
Viewing 6 replies - 1 through 6 (of 6 total)
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.