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);