diff --git a/index.php b/index.php index 0ab25d6..4daa665 100644 --- a/index.php +++ b/index.php @@ -25,7 +25,7 @@ $template = new plantillas($conf->template); if (isset($_GET["post"])) { $id_post = $_GET["post"]; - if (!is_numeric($id_post) && $id_post < 1 ){ + if (!is_numeric($id_post) || $id_post < 1 ){ header("Location: index.php"); } } else {