Bad variable, duh !

This commit is contained in:
Shikiryu 2011-01-07 13:33:44 +00:00
parent ff6cf6e83c
commit 6869f1e733
1 changed files with 2 additions and 2 deletions

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