From 152405d1b34b8ba1a27b288eba53bb29ed2bf228 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 5 Jun 2008 08:45:31 +0000 Subject: Installation and initial account creation should now be stable. git-svn-id: https://code.elgg.org/elgg/trunk@800 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engine/lib/elgglib.php') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index e18feb398..e07d59162 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -906,6 +906,10 @@ function datalist_get($name) { global $CONFIG; + + // We need this, because sometimes datalists are received before the database is created + if (!is_db_installed()) return false; + $name = sanitise_string($name); if ($row = get_data_row("select value from {$CONFIG->dbprefix}datalists where name = '{$name}'")) { return $row->value; -- cgit v1.2.3