aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-05 11:59:13 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-05 11:59:13 +0000
commitfe427c3ad26b37746005535d58b743c37758f806 (patch)
treed414556afd97a85b59625e52b79158ba166c8d69
parenta7297de5ba7f153deff11dfabf097f8abd3747fa (diff)
downloadelgg-fe427c3ad26b37746005535d58b743c37758f806.tar.gz
elgg-fe427c3ad26b37746005535d58b743c37758f806.tar.bz2
Removing spurious error log messages
git-svn-id: https://code.elgg.org/elgg/trunk@3263 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/access.php2
-rw-r--r--engine/lib/elgglib.php3
2 files changed, 4 insertions, 1 deletions
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();