remove temporary variable
This commit is contained in:
parent
cfa309885a
commit
c05bfb5d8d
|
@ -65,10 +65,9 @@ function find_short($hash, $mysqli) {
|
|||
}
|
||||
|
||||
if (isset($_POST['url'])) {
|
||||
$URL = $_POST['url'];
|
||||
if ($URL != '' && strlen($URL) > 0) {
|
||||
if ($_POST['url'] != '' && strlen($_POST['url']) > 0) {
|
||||
$db = db_connect();
|
||||
$link = generate_short($URL, $db);
|
||||
$link = generate_short($_POST['url' , $db);
|
||||
} else {
|
||||
$link = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue