diff options
-rw-r--r-- | engine/lib/install.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/install.php b/engine/lib/install.php index e9ae5279b..9709e95e2 100644 --- a/engine/lib/install.php +++ b/engine/lib/install.php @@ -66,11 +66,11 @@ if (isset($CONFIG->db_installed)) { return $CONFIG->db_installed; } -
- $tables = get_db_tables();
- if (!$tables) {
- return false;
- } +
+ if ($dblink = get_db_link('read')) {
+ mysql_query("select * from {$CONFIG->dbprefix}entities limit 1",$dblink);
+ if (mysql_errno($dblink) > 0) return false;
+ } else return false; $CONFIG->db_installed = true; // Set flag if db is installed (if false then we want to check every time) |