From dc08082d7d5e3962c7c96a873ac1dd66891d5bb0 Mon Sep 17 00:00:00 2001 From: icewing Date: Fri, 14 Mar 2008 18:01:02 +0000 Subject: Marcus Povey * Made site test conditional to remove debug message git-svn-id: https://code.elgg.org/elgg/trunk@231 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/lib/access.php b/engine/lib/access.php index 3cf95ead7..999d06a6e 100644 --- a/engine/lib/access.php +++ b/engine/lib/access.php @@ -30,7 +30,7 @@ $access_list = array(); if ($user_id == 0) $user_id = $_SESSION['id']; - if ($site_id == 0) $site_id = $CONFIG->site_id; + if (($site_id == 0) && (isset($CONFIG->site_id))) $site_id = $CONFIG->site_id; $user_id = (int) $user_id; $site_id = (int) $site_id; -- cgit v1.2.3