I'm stupid.
This commit is contained in:
parent
00f98e463b
commit
7d1341b671
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ final class SatoriRoutes extends RouteHandler {
|
||||||
|
|
||||||
$result = $stmt->getResult();
|
$result = $stmt->getResult();
|
||||||
if($result->next()) {
|
if($result->next()) {
|
||||||
$linkId = $stmt->getInteger(0);
|
$linkId = $result->getInteger(0);
|
||||||
} else {
|
} else {
|
||||||
$stmt = $this->dbConn->prepare('INSERT INTO awk_satori_redirects (redir_url) VALUES (?)');
|
$stmt = $this->dbConn->prepare('INSERT INTO awk_satori_redirects (redir_url) VALUES (?)');
|
||||||
$stmt->addParameter(1, $url);
|
$stmt->addParameter(1, $url);
|
||||||
|
|
Loading…
Reference in a new issue