diff --git a/src/views/Pagination.php b/src/views/Pagination.php index 729d1cd..56dd65e 100644 --- a/src/views/Pagination.php +++ b/src/views/Pagination.php @@ -45,7 +45,7 @@ function displayNavigationButton(int $current_page_number, int $total_pages, str $link_content = htmlspecialchars($is_left ? "<" : ">"); $className = "page-item"; - if (($current_page_number === 1 && $is_left) || ($current_page_number === $total_pages && !$is_left)) { + if (($current_page_number <= 1 && $is_left) || ($current_page_number >= $total_pages && !$is_left)) { $className .= " disabled"; }