remove temporary variable

This commit is contained in:
mischa 2022-08-12 08:07:22 +00:00
parent cfa309885a
commit c05bfb5d8d
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}