Fix problems with offline writing

This commit is contained in:
danpros 2024-01-05 18:07:31 +07:00
commit b9b8a4e114
2 changed files with 54 additions and 42 deletions

View file

@ -1830,7 +1830,7 @@ get('/admin/categories/:category', function ($category) {
$desc = $desc[0];
}
if (empty($posts) || $page < 1) {
if (empty($desc)) {
// a non-existing page
not_found();
}