From c3f10fb7b8812d2fcd7d62b180ec969fe9261fc1 Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Mon, 31 Oct 2016 02:38:03 +0800 Subject: [PATCH] Made image optional. --- admin/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/index.php b/admin/index.php index ad3bd3b..7317fb0 100644 --- a/admin/index.php +++ b/admin/index.php @@ -13,7 +13,7 @@ $tim=$_POST["tim"]; $txt = Parsedown::instance()->parse($txt); -if (isset($_FILES["file"])) { +if (isset($_FILES["file"]) && isset($_FILES["file"]["name"])) { $allok = 0; $uploadLocation = "../" . UPLOAD_LOCATION . "";