From 77e900523470eb7de54f2b92794177b54c3ad1bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 15 Jan 2018 22:45:50 +0100 Subject: [PATCH] Small cleanups. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- lib/db.php | 3 +-- lib/utils.php | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) 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 @@