mirror of
https://github.com/pikami/palm-paste.git
synced 2026-10-21 00:24:48 +01:00
Paste title defaults to 'Untitled'
This commit is contained in:
1 parent
7d3230f1d5
commit
9a979592e1
2 files changed
+2
-2
No files matched your search
@@ -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"];
|
||||
|
||||
Reference in new issue
Block a user