From afa65955326919c7a29e9a6bff5c8e812c77988a Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 27 Jun 2008 13:31:07 +0000 Subject: Db installed flag on config, Refs #101 git-svn-id: https://code.elgg.org/elgg/trunk@1179 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/install.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'engine') 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; } -- cgit v1.2.3