Fix comparison error

This commit is contained in:
Tetrakern 2023-01-26 02:58:38 +01:00
parent a859893250
commit b86dc87cc6

View File

@ -809,7 +809,7 @@ if ( ! function_exists( 'fictioneer_get_chapter_micro_menu' ) ) {
<?php // <--- End HTML
$micro_menu['bookmark_jump'] = ob_get_clean();
if ( $args['prev_index'] ) {
if ( $args['prev_index'] !== false ) {
ob_start();
// Start HTML ---> ?>
<a href="<?php echo get_permalink( $args['chapter_ids'][ $args['prev_index'] ] ); ?>" title="<?php echo get_the_title( $args['chapter_ids'][ $args['prev_index'] ] ); ?>" class="micro-menu__previous previous" tabindex="-1">