repositories
/
Project_webapp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small cleanups.
[Project_webapp.git]
/
lib
/
db.php
diff --git
a/lib/db.php
b/lib/db.php
index 6c102c3855852b61e7b1a986843dc4f22e2fd2e4..c7c2d48c71f9cb45e756b1151576b7e125e36c1a 100644
(file)
--- a/
lib/db.php
+++ b/
lib/db.php
@@
-20,8
+20,7
@@
class CustomDB
*/
public function __construct($host, $username, $password, $dbname)
{
*/
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;
if (!$this->connection->connect_errno) {
$this->connected = true;