X-Git-Url: https://git.piment-noir.org/?p=Project_webapp.git;a=blobdiff_plain;f=lib%2Fdb.php;h=c7c2d48c71f9cb45e756b1151576b7e125e36c1a;hp=6c102c3855852b61e7b1a986843dc4f22e2fd2e4;hb=77e900523470eb7de54f2b92794177b54c3ad1bf;hpb=db6cae9045820883e6b4c7224fe68c4f4fb9c4e8 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;