diff --git a/admin/index.php b/admin/index.php index fba1e52..dd27b81 100644 --- a/admin/index.php +++ b/admin/index.php @@ -151,13 +151,13 @@ if ($user->isAdmin()) {

 

isAdmin()) { } } ?> -
name="frmAdd" class="newpost"> + name="frmAdd" class="newpost">
isAdmin()) { $url = ($isEdition) ? $post["url"] : ""; - switch ($_GET["new"]) { + switch (isset($_GET["new"]) && $_GET["new"]) { case "post": $input = array("{type}", "{date}", "{id_user}", "{editTitle}", "{editBody}"); $output = array("1", $date, $_SESSION['user_id'], $title, $body);