fixed sql error
Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
parent
c31642a90e
commit
491c26e80c
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue