From 154232236af978c7548753998cb5cd268caaf941 Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Wed, 21 Mar 2018 13:43:26 +0100 Subject: [PATCH] Added parameter type for query --- backend/operations/UserAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/operations/UserAuth.php b/backend/operations/UserAuth.php index 518a733..6d09d9a 100644 --- a/backend/operations/UserAuth.php +++ b/backend/operations/UserAuth.php @@ -124,7 +124,7 @@ class UserAuth $query = $this->db->prepare('SELECT id FROM users WHERE name=:name AND backend=:backend'); $query->bindValue(':name', $username, \PDO::PARAM_STR); - $query->bindValue(':backend', $backend); + $query->bindValue(':backend', $backend, \PDO::PARAM_STR); $query->execute(); $record = $query->fetch();