Remove redundant code

This commit is contained in:
Stanislas Dolcini 2018-10-05 19:46:00 +02:00
parent f5908d99d3
commit ad07c3fc51

View file

@ -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();