diff --git a/core/database.class.php b/core/database.class.php index 97f7c717..e7c4e27d 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -470,6 +470,8 @@ class Database { * Returns the number of tables present in the current database. */ public function count_tables() { + if(is_null($this->db) || is_null($this->engine)) $this->connect_db(); + if($this->engine->name === "mysql") { return count( $this->get_all("SHOW TABLES") diff --git a/install.php b/install.php index f2984e9e..a52154e5 100644 --- a/install.php +++ b/install.php @@ -1,8 +1,14 @@ - +