fixed sql error

Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
tracer 2022-01-27 15:13:51 +01:00
parent c31642a90e
commit 491c26e80c
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,8 @@ class ApiKeys
FROM " . DatabaseConnection::TABLE_USER;
try {
$statement = $this->databaseConnection->getConnection()->query(statement: $sql);
$statement = $this->databaseConnection->getConnection()->prepare(query: $sql);
$statement->execute();
return $statement->fetchAll(mode: PDO::FETCH_ASSOC);
} catch (PDOException $e) {
exit($e->getMessage());