diff --git a/Source/API/script/Config/config.php b/Source/API/script/Config/config.php index 0f89eb1..1bf7188 100644 --- a/Source/API/script/Config/config.php +++ b/Source/API/script/Config/config.php @@ -8,12 +8,12 @@ function connect() $login = "root"; try { - - $connection = new Connection($dsn,$login,"root"); - - } catch (PDOException $e){ + $connection = new Connection($dsn ,$login,"root"); + } catch (PDOException $e) { http_response_code(404); + return http_response_code(); } + return $connection; }