From a8d2e7926b2ce118cbe8d789ffb2e699c28d2df9 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 19 May 2008 08:48:53 +0000 Subject: 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 --- engine/lib/sessions.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engine/lib') 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(); -- cgit v1.2.3