mirror of https://github.com/Chouchen/shorturl.git
Bad variable, duh !
This commit is contained in:
parent
4b9e0b1811
commit
d6a1617f0c
|
@ -10,14 +10,14 @@ $version = $_GET['v'];
|
|||
|
||||
include 'class/ShortURL.php';
|
||||
|
||||
$url = new ShortURL();
|
||||
$short = new ShortURL();
|
||||
|
||||
if($s=='' || $url==''){
|
||||
echo 'alert("'.ShortURL::STATE_FIELD_MISSING.'");';
|
||||
exit;
|
||||
}
|
||||
|
||||
$ret = $url->shortThisUrl($url, $s);
|
||||
$ret = $short->shortThisUrl($url, $s);
|
||||
|
||||
if(is_bool($ret) && !$ret){
|
||||
echo 'alert("'.ShortURL::STATE_ERROR.'");';
|
||||
|
|
Loading…
Reference in New Issue