Only treat pages > 1 as 404, if they don't exist

This commit is contained in:
Daniel Winzen
2020-11-12 10:30:12 +01:00
parent 3f97c7d168
commit b9b5b6092f

View File

@ -102,7 +102,7 @@ function send_html(){
$pages=ceil($category_count[$cat]/PER_PAGE);
}
}
if($_REQUEST['pg']>$pages){
if($_REQUEST['pg'] > $pages && $_REQUEST['pg'] > 1){
http_response_code(404);
}
echo '<!DOCTYPE html><html lang="'.$language.'"><head>';