Update createArticle-controller.php
This commit is contained in:
@@ -125,7 +125,7 @@ require_once '../validator/article-validator.php';
|
|||||||
// Formulardaten nach erfolgreichem Erstellen aus der Session löschen
|
// Formulardaten nach erfolgreichem Erstellen aus der Session löschen
|
||||||
unset($_SESSION["old_title"], $_SESSION["old_content"], $_SESSION["old_category"], $_SESSION["old_tags"]);
|
unset($_SESSION["old_title"], $_SESSION["old_content"], $_SESSION["old_category"], $_SESSION["old_tags"]);
|
||||||
|
|
||||||
} catch (Exception $e){
|
} catch (\Throwable $e){
|
||||||
$_SESSION["message"] = "internal_error";
|
$_SESSION["message"] = "internal_error";
|
||||||
header("location: ../../index.php?pfad=createArticle");
|
header("location: ../../index.php?pfad=createArticle");
|
||||||
exit();
|
exit();
|
||||||
|
|||||||
Reference in New Issue
Block a user