1
0
mirror of https://github.com/gamaio/lobli.git synced 2024-12-22 19:52:40 +00:00

Change l59 if to or instead of and, remove echo

This commit is contained in:
alopexc0de 2014-08-10 19:54:41 -04:00
parent 5d41d3adb8
commit 9e1035fde3
No known key found for this signature in database
GPG Key ID: 48E847F18074C953

View File

@ -56,7 +56,7 @@
require('Include/PHP/functions.php');
if(!empty($_POST['link']) && !empty($_POST['linkage'])){
if(!empty($_POST['link']) || !empty($_POST['linkage'])){
if(empty($_GET['token']) || $_GET['token'] != $_SESSION['token'] || empty($_POST[$catchid]) || $_POST[$catchid] != $catchVal){
die("<div id=\"danger\" class=\"alert alert-danger\">Oh Noes! Something happened and I can't continue.<br />Please try again by using the form located at <a href=\"http://lob.li\">lob.li</a>.</div>");
}
@ -69,8 +69,6 @@
$short = "http://$short";
}
echo shorten($redis, $short, $linkage, $seperator);
$reShort = shorten($redis, $short, $linkage, $seperator);
$reShort = explode($seperator, $reShort);
$retCode = $reShort[0];