Compare commits

..

2 Commits

Author SHA1 Message Date
niklas.ortmann ded98ed757 Update LocalArticleManager.php 2026-06-03 19:34:51 +02:00
niklas.ortmann 18fe69cbcd Update showCategory-controller.php 2026-06-03 19:34:48 +02:00
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -9,12 +9,12 @@ if (isset($_GET["category"]) && !empty($_GET["category"]) && articleCategoryVali
$articles = $articleManager->getArticlesByCategory($category);
} catch (Exception $e) {
$_SESSION["message"] = "internal_error";
header("location: ../../index.php");
include_once "content/404.php";
exit();
}
}else{
$_SESSION["message"] = "invalid_category";
header("location: ../../index.php");
include_once "content/404.php";
exit();
}
?>
+1 -1
View File
@@ -200,7 +200,7 @@ class LocalArticleManager implements ArticleManagerDAO {
return $filteredArticles;
}
public function getArticlesByCategory($category)
{
$articles = $this->getAllArticles();