Small cleanups.
[Project_webapp.git] / lib / db.php
index 6c102c3855852b61e7b1a986843dc4f22e2fd2e4..c7c2d48c71f9cb45e756b1151576b7e125e36c1a 100644 (file)
@@ -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;