diff --git a/core/config.php b/core/config.php index fe256d2..7a96552 100644 --- a/core/config.php +++ b/core/config.php @@ -24,6 +24,7 @@ $sql = [ try { $con = new PDO("mysql:dbname=".$sql["dbname"].";host=".$sql["host"].";port=".$sql["port"], $sql["user"], $sql["pass"]); $con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING); + unset($sql); } catch (PDOException $e) { die("Connection failed: " . $e->getMessage()); }