aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/install.php')
-rw-r--r--engine/lib/install.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/engine/lib/install.php b/engine/lib/install.php
index b348ab9b2..ca615c473 100644
--- a/engine/lib/install.php
+++ b/engine/lib/install.php
@@ -17,12 +17,21 @@
*
* @return true|false Whether the database has been installed
*/
- function is_db_installed() {
+ function is_db_installed() {
+
+ global $CONFIG;
+
+ if (isset($CONFIG->db_installed)) {
+ return $CONFIG->db_installed;
+ }
$tables = get_db_tables();
if (!$tables) {
return false;
- }
+ }
+
+ $CONFIG->db_installed = true; // Set flag if db is installed (if false then we want to check every time)
+
return true;
}