X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Fdb.php;h=c7c2d48c71f9cb45e756b1151576b7e125e36c1a;hb=77e900523470eb7de54f2b92794177b54c3ad1bf;hp=6c102c3855852b61e7b1a986843dc4f22e2fd2e4;hpb=a96fefe119b8c91c2f5ae6ad04e11af676e5540b;p=Project_webapp.git diff --git a/lib/db.php b/lib/db.php index 6c102c3..c7c2d48 100644 --- a/lib/db.php +++ b/lib/db.php @@ -20,8 +20,7 @@ class CustomDB */ public function __construct($host, $username, $password, $dbname) { - $connection = new mysqli($host, $username, $password, $dbname); - $this->connection = $connection; + $this->connection = new mysqli($host, $username, $password, $dbname); if (!$this->connection->connect_errno) { $this->connected = true;