mirror of
https://github.com/Chouchen/shorturl.git
synced 2018-06-07 06:34:38 +02:00
Bad variable, duh !
This commit is contained in:
parent
ff6cf6e83c
commit
6869f1e733
4
add.php
4
add.php
@ -10,14 +10,14 @@ $version = $_GET['v'];
|
|||||||
|
|
||||||
include 'class/ShortURL.php';
|
include 'class/ShortURL.php';
|
||||||
|
|
||||||
$url = new ShortURL();
|
$short = new ShortURL();
|
||||||
|
|
||||||
if($s=='' || $url==''){
|
if($s=='' || $url==''){
|
||||||
echo 'alert("'.ShortURL::STATE_FIELD_MISSING.'");';
|
echo 'alert("'.ShortURL::STATE_FIELD_MISSING.'");';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret = $url->shortThisUrl($url, $s);
|
$ret = $short->shortThisUrl($url, $s);
|
||||||
|
|
||||||
if(is_bool($ret) && !$ret){
|
if(is_bool($ret) && !$ret){
|
||||||
echo 'alert("'.ShortURL::STATE_ERROR.'");';
|
echo 'alert("'.ShortURL::STATE_ERROR.'");';
|
||||||
|
Loading…
Reference in New Issue
Block a user