aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-05 12:35:34 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-05 12:35:34 +0000
commita6ea9e3cd91681adbab62519985beb068744d789 (patch)
treead11fddd17a55c1ae2865df0cf0bcaf47d43ed19 /engine/lib
parentf5634039ed8f3733f8dadddf22fab641e3cbd7a9 (diff)
downloadelgg-a6ea9e3cd91681adbab62519985beb068744d789.tar.gz
elgg-a6ea9e3cd91681adbab62519985beb068744d789.tar.bz2
Minor change to access SQL. Fixes #687
git-svn-id: https://code.elgg.org/elgg/trunk@2655 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/access.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php
index 7770e0745..77f234dc9 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -169,7 +169,7 @@
}
if (empty($sql))
- $sql = " ({$table_prefix}access_id in {$access} or ({$table_prefix}access_id = 0 and {$table_prefix}owner_guid = $owner))";
+ $sql = " ({$table_prefix}access_id in {$access} or ({$table_prefix}access_id = " . ACCESS_PRIVATE . " and {$table_prefix}owner_guid = $owner))";
if (!$ENTITY_SHOW_HIDDEN_OVERRIDE)
$sql .= " and {$table_prefix}enabled='yes'";