From fd4cda1f09289b1b46bb154fa21c42b106b025bb Mon Sep 17 00:00:00 2001 From: alopexc0de Date: Wed, 7 May 2014 19:23:53 -0500 Subject: [PATCH] Make links compatible more compatible with last commit --- api/api.backend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api.backend.php b/api/api.backend.php index 6d7b7f1..af6e874 100644 --- a/api/api.backend.php +++ b/api/api.backend.php @@ -56,7 +56,7 @@ class api{ if($result = $sdb->query($sql)){ if($row = $result->fetch_assoc()){ $short = $row['shortlink']; - return "
Existing link: http://unps.us/?$short
"; + return "
Existing link: http://unps.us/?$short
"; } } if(checkRemoteFile($link) !== true) return "
Dead Link: $link
"; @@ -70,7 +70,7 @@ class api{ else: $sql = "INSERT INTO `links` (link, shortlink, dpass) VALUES ('$link', '$short', '$apikey')"; endif; - if($result = $sdb->query($sql)): return "
Shortened: http://unps.us/?$short"; + if($result = $sdb->query($sql)): return "
Shortened: http://unps.us/?$short"; else: return '
ERROR: ['.$sdb->error.']
'; endif; }