diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-14 18:01:02 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-14 18:01:02 +0000 |
commit | dc08082d7d5e3962c7c96a873ac1dd66891d5bb0 (patch) | |
tree | 7c95e4faf6e2f50134acf269e353172e9e980f82 /engine | |
parent | c243ae09fcc100c3151fd3d842eb928003fc2f18 (diff) | |
download | elgg-dc08082d7d5e3962c7c96a873ac1dd66891d5bb0.tar.gz elgg-dc08082d7d5e3962c7c96a873ac1dd66891d5bb0.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Made site test conditional to remove debug message
git-svn-id: https://code.elgg.org/elgg/trunk@231 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/access.php | 2 |
1 files changed, 1 insertions, 1 deletions
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;
|