Update showArticle-controller.php
This commit is contained in:
@@ -15,12 +15,16 @@ if (isset($_GET["id"])){
|
|||||||
$author = $article->getAuthor();
|
$author = $article->getAuthor();
|
||||||
$tags = $article->getTags();
|
$tags = $article->getTags();
|
||||||
}else{
|
}else{
|
||||||
$_SESSION["message"] = "article_not_found";
|
header("location: ../../index.php?pfad=404");
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
} catch (Exception $e){
|
} catch (Exception $e){
|
||||||
$_SESSION["message"] = "internal_error";
|
$_SESSION["message"] = "internal_error";
|
||||||
|
header("location: ../../index.php?pfad=showArticle");
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
$_SESSION["message"] = "article_not_found";
|
header("location: ../../index.php?pfad=404");
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user