From fe427c3ad26b37746005535d58b743c37758f806 Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 5 May 2009 11:59:13 +0000 Subject: Removing spurious error log messages git-svn-id: https://code.elgg.org/elgg/trunk@3263 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/access.php | 2 +- engine/lib/elgglib.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/access.php b/engine/lib/access.php index 2341e3cb2..45aa49962 100644 --- a/engine/lib/access.php +++ b/engine/lib/access.php @@ -237,7 +237,7 @@ END; $friends_bit .= "{$table_prefix}owner_guid IN (SELECT guid_one FROM {$CONFIG->dbprefix}entity_relationships WHERE relationship='friend' AND guid_two=$owner)"; $friends_bit = '('.$friends_bit.') OR '; - if ($CONFIG->user_block_and_filter_enabled) { + if ((isset($CONFIG->user_block_and_filter_enabled)) && ($CONFIG->user_block_and_filter_enabled)) { // check to see if the user is in the entity owner's block list // or if the entity owner is in the user's filter list // if so, disallow access diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 392f6cd8b..2db75b6f7 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -317,6 +317,9 @@ global $CONFIG; + if (!isset($CONFIG->views)) + $CONFIG->views = new stdClass; + if (!isset($CONFIG->views->simplecache)) $CONFIG->views->simplecache = array(); -- cgit v1.2.3