From 54823b100346a5100308bbfed90d42795565b72d Mon Sep 17 00:00:00 2001 From: danpros Date: Sat, 27 Jan 2024 07:54:03 +0700 Subject: [PATCH] Update htmly.php --- system/htmly.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/system/htmly.php b/system/htmly.php index 39307f6..468bc16 100644 --- a/system/htmly.php +++ b/system/htmly.php @@ -428,8 +428,12 @@ get('/front/edit', function () { // Show the "Add content" page get('/add/content', function () { - $req = _h($_GET['type']); - + if (isset($_GET['type'])) { + $req = _h($_GET['type']); + } else { + $req = 'post'; + } + $type = 'is_' . $req; if (login()) {