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 ++ linkshorter/view/templ-head.php | 1 - linkshorter/view/templ-index.php | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'linkshorter') 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"] == "" ) diff --git a/linkshorter/view/templ-head.php b/linkshorter/view/templ-head.php index 4dd76d5..fad0fb8 100644 --- a/linkshorter/view/templ-head.php +++ b/linkshorter/view/templ-head.php @@ -10,7 +10,6 @@ diff --git a/linkshorter/view/templ-index.php b/linkshorter/view/templ-index.php index 46ff6a8..619e763 100644 --- a/linkshorter/view/templ-index.php +++ b/linkshorter/view/templ-index.php @@ -21,13 +21,13 @@