From 7d1341b671b8c5d3545528d3f34bf9eb32f26083 Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 22 May 2024 22:03:24 +0000 Subject: [PATCH] I'm stupid. --- src/SatoriRoutes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SatoriRoutes.php b/src/SatoriRoutes.php index c591989..be03e90 100644 --- a/src/SatoriRoutes.php +++ b/src/SatoriRoutes.php @@ -52,7 +52,7 @@ final class SatoriRoutes extends RouteHandler { $result = $stmt->getResult(); if($result->next()) { - $linkId = $stmt->getInteger(0); + $linkId = $result->getInteger(0); } else { $stmt = $this->dbConn->prepare('INSERT INTO awk_satori_redirects (redir_url) VALUES (?)'); $stmt->addParameter(1, $url);