1
0
Fork 0

Made image optional.

master
Ambrose Chua 2016-10-31 02:38:03 +08:00
parent 6e10f2f5d1
commit c3f10fb7b8
1 changed files with 1 additions and 1 deletions

View File

@ -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 . "";