From ad07c3fc51fe494963cf37af2570b614f7cb9284 Mon Sep 17 00:00:00 2001 From: Stanislas Dolcini Date: Fri, 5 Oct 2018 19:46:00 +0200 Subject: [PATCH] Remove redundant code --- code/web/public_php/login/class/ConnectionHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/web/public_php/login/class/ConnectionHandler.php b/code/web/public_php/login/class/ConnectionHandler.php index b364e9ce8..a4d805e34 100644 --- a/code/web/public_php/login/class/ConnectionHandler.php +++ b/code/web/public_php/login/class/ConnectionHandler.php @@ -41,7 +41,7 @@ class ConnectionHandler { setMsgLanguage($lang); $escaped_login = $mysqli->escape_string($login); - $result = mysqli_query($link, $query) or die(errorMsgBlock(3006, $query, 'main', $DBName, $DBHost, $DBUserName, mysqli_error($link))); + if ($stmt = $this->db_Connection->prepare('SELECT Password FROM user WHERE Login=\'?\' LIMIT 1')) { if ($stmt = mysqli_prepare('SELECT TOP 1 Password FROM user WHERE Login=\'?\'')) { $stmt->bind_param("s", $escaped_login); $stmt->execute();