From 123260460a3b0c2f21a0fd1ba3713845081e5909 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 2 May 2008 14:53:39 +0000 Subject: A small validation check git-svn-id: https://code.elgg.org/elgg/trunk@629 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/configuration.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php index 28e91978b..b2bc83505 100644 --- a/engine/lib/configuration.php +++ b/engine/lib/configuration.php @@ -118,9 +118,11 @@ $CONFIG->path = datalist_get('path'); $CONFIG->dataroot = datalist_get('dataroot'); - $CONFIG->wwwroot = $CONFIG->site->url; + if (isset($CONFIG->site)) { + $CONFIG->wwwroot = $CONFIG->site->url; + $CONFIG->sitename = $CONFIG->site->name; + } $CONFIG->url = $CONFIG->wwwroot; - $CONFIG->sitename = $CONFIG->site->name; return true; -- cgit v1.2.3