Update showCategory-controller.php

This commit is contained in:
2026-06-03 19:34:48 +02:00
parent e35d07ebc3
commit 18fe69cbcd
+2 -2
View File
@@ -9,12 +9,12 @@ if (isset($_GET["category"]) && !empty($_GET["category"]) && articleCategoryVali
$articles = $articleManager->getArticlesByCategory($category); $articles = $articleManager->getArticlesByCategory($category);
} catch (Exception $e) { } catch (Exception $e) {
$_SESSION["message"] = "internal_error"; $_SESSION["message"] = "internal_error";
header("location: ../../index.php"); include_once "content/404.php";
exit(); exit();
} }
}else{ }else{
$_SESSION["message"] = "invalid_category"; $_SESSION["message"] = "invalid_category";
header("location: ../../index.php"); include_once "content/404.php";
exit(); exit();
} }
?> ?>