mirror of
https://github.com/gamaio/lobli.git
synced 2024-12-22 11:42:40 +00:00
Change l59 if to or instead of and, remove echo
This commit is contained in:
parent
5d41d3adb8
commit
9e1035fde3
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user