From: Jérôme Benoit Date: Mon, 15 Jan 2018 21:45:50 +0000 (+0100) Subject: Small cleanups. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=77e900523470eb7de54f2b92794177b54c3ad1bf;p=Project_webapp.git Small cleanups. Signed-off-by: Jérôme Benoit --- 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; diff --git a/lib/utils.php b/lib/utils.php index 786c10e..8fdb0aa 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -1,4 +1,5 @@