getArticle($id); if($article != null){ $title = $article->getTitle(); $content = $article->getContent(); $category = $article->getCategory(); $author = $article->getAuthor(); $tags = $article->getTags(); }else{ header("location: ../index.php?pfad=404"); exit(); } } catch (Exception $e){ $_SESSION["message"] = "internal_error"; header("location: ../../index.php?pfad=showArticle"); exit(); } }else{ $_SESSION["message"] = "missing_id"; } ?>