From 258edc97f7211884ce460f8c5d443a242471f6bc Mon Sep 17 00:00:00 2001 From: mischa Date: Tue, 23 Aug 2022 05:53:10 +0000 Subject: [PATCH] durp... --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 9a34a98..235d30c 100644 --- a/index.php +++ b/index.php @@ -54,7 +54,7 @@ function generate_short($url, $mysqli) { function find_short($hash, $mysqli) { $hash = mysqli_real_escape_string($mysqli, $hash); - $result = mysqli_query($mysqli, "SELECT * FROM " . DB_TABLE . " WHERE id='$hash'") . "'"); + $result = mysqli_query($mysqli, "SELECT * FROM " . DB_TABLE . " WHERE id='$hash'"); if ($row = mysqli_fetch_assoc($result)) { $link = $row['url']; mysqli_query($mysqli, "UPDATE " . DB_TABLE . " SET count='" . ($row['count'] + 1) . "' WHERE id='" . $row['id'] . "'");