<?php // Check if the there is any Data posted if (!empty($_POST) && $_POST['post_uid'] != "") { // Neuen Kommentar einfügen try { $BlogPostComment = new BlogPost($_POST['post_uid']); $BlogPostComment->NewComment($_POST); $Notices[] = "Danke für den Kommentar"; } catch (Exception $e) { $Notices[] = $e->getMessage(); } } if (empty($_GET['page'])) { $_GET['page'] = '1'; } // Kommentare laden try { if (!empty($_GET['uid'])) { $BlogComment = new BlogPost($_GET['uid']); $Comments = $BlogComment->GetComments($_GET['page'], 5); $CommentsPagination = HelperSingleton::GetInstance()->GetPagination(); } } catch (Exception $e) { // No Exception Management at this time //$Notices[] = $e->getMessage(); }