From 08f3b8c3930ecc009f3473d9cae9e26ad17fb23d Mon Sep 17 00:00:00 2001 From: root Date: Thu, 27 Nov 2014 17:59:00 +0100 Subject: Small improvements. --- linkshorter/index.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linkshorter/index.php') diff --git a/linkshorter/index.php b/linkshorter/index.php index 8d05977..3f96ee3 100644 --- a/linkshorter/index.php +++ b/linkshorter/index.php @@ -48,6 +48,8 @@ if ( ! isset($_REQUEST['url']) || $_REQUEST['url'] == "" ){ _do_output("Failure!", "Your Lifetime doesn't look like a valid number."); } $options["ttl"] = $_REQUEST["ttl"]; + if ( $options["ttl"] == 0 ) + $options["ttl"] = ""; } if ( ! isset($_REQUEST["password"]) || $_REQUEST["password"] == "" ) -- cgit v1.2.3