From 8d423e4baa7de896d6c1b510b08869bb004a4453 Mon Sep 17 00:00:00 2001 From: nolanwhy Date: Sat, 4 Feb 2023 22:55:39 +0100 Subject: [PATCH] Update config.php --- core/config.php | 1 + 1 file changed, 1 insertion(+) 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()); }