Update showArticle-controller.php

This commit is contained in:
2026-06-01 12:17:11 +02:00
parent 62190fa821
commit d18f33a87a
+2 -2
View File
@@ -16,12 +16,12 @@ if (isset($_GET["id"]) && !empty($_GET["id"])){
$tags = $article->getTags(); $tags = $article->getTags();
}else{ }else{
echo "Test"; echo "Test";
header("Location: index.php?pfad=404"); header("location: index.php?pfad=404");
exit(); exit();
} }
} catch (Exception $e){ } catch (Exception $e){
$_SESSION["message"] = "internal_error"; $_SESSION["message"] = "internal_error";
header("location: ../../index.php?pfad=showArticle"); header("location: index.php?pfad=showArticle");
exit(); exit();
} }
}else{ }else{