aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-05 08:45:31 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-05 08:45:31 +0000
commit152405d1b34b8ba1a27b288eba53bb29ed2bf228 (patch)
treeedfe2eb218defd30186a528e7ad2f3fbba460013 /engine/lib/elgglib.php
parente26efc7482f04b8c8b5e5b68109f961e380064ef (diff)
downloadelgg-152405d1b34b8ba1a27b288eba53bb29ed2bf228.tar.gz
elgg-152405d1b34b8ba1a27b288eba53bb29ed2bf228.tar.bz2
Installation and initial account creation should now be stable.
git-svn-id: https://code.elgg.org/elgg/trunk@800 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php4
1 files changed, 4 insertions, 0 deletions
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;