aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-19 08:48:53 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-19 08:48:53 +0000
commita8d2e7926b2ce118cbe8d789ffb2e699c28d2df9 (patch)
tree6cc560124f10709c5bb2a7c449dac8558623c3fb
parent52e82d9dd6e827227f30a71c1f1a3e96c5e4f78c (diff)
downloadelgg-a8d2e7926b2ce118cbe8d789ffb2e699c28d2df9.tar.gz
elgg-a8d2e7926b2ce118cbe8d789ffb2e699c28d2df9.tar.bz2
Session init now fails if the db hasn't been installed.
git-svn-id: https://code.elgg.org/elgg/trunk@652 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/sessions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index ddfdd9ab0..9d61d0241 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -111,6 +111,9 @@
* @param unknown_type $object
*/
function session_init($event, $object_type, $object) {
+
+ if (!is_db_installed()) return false;
+
session_name('Elgg');
session_start();