From 9a979592e134e3dbda9a18a5b9354504d6932942 Mon Sep 17 00:00:00 2001 From: pikami Date: Sat, 29 Apr 2017 19:16:49 +0000 Subject: [PATCH] Paste title defaults to 'Untitled' --- NewPastePanel.php | 2 +- post.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NewPastePanel.php b/NewPastePanel.php index 05ff2af..df79ce5 100644 --- a/NewPastePanel.php +++ b/NewPastePanel.php @@ -20,7 +20,7 @@ '.$row['text'].''); + echo ''; } else printf(''); ?> diff --git a/post.php b/post.php index d7a93aa..42ca001 100644 --- a/post.php +++ b/post.php @@ -33,7 +33,7 @@ if(isset($_POST["type"])){ $title = "Untitled"; $text = $_POST["text"]; $exposure = 0; - if(isset($_POST["title"])) + if(isset($_POST["title"]) && $_POST["title"]!="") $title = $_POST["title"]; if(isset($_POST["exposure"]) && is_numeric($_POST["exposure"])) $exposure = $_POST["exposure"];