diff --git a/db.class.php b/db.class.php index 1a510f0..1981cdf 100644 --- a/db.class.php +++ b/db.class.php @@ -12,7 +12,8 @@ class db function __construct($database) { - $this->open($database); + $this->database = $database; + $this->open(); }