1
0
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:
Shikiryu 2011-01-07 13:33:44 +00:00
parent ff6cf6e83c
commit 6869f1e733

View File

@ -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.'");';