From 6869f1e73309e2d28fc98f0041551714f99b0fac Mon Sep 17 00:00:00 2001 From: Shikiryu Date: Fri, 7 Jan 2011 13:33:44 +0000 Subject: [PATCH] Bad variable, duh ! --- add.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/add.php b/add.php index 605a740..f23afa9 100644 --- a/add.php +++ b/add.php @@ -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.'");';