diff options
-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 ecdcaad3b..2341e3cb2 100644 --- a/engine/lib/access.php +++ b/engine/lib/access.php @@ -248,7 +248,7 @@ END; }
if (empty($sql))
- $sql = " $friends_bit ({$table_prefix}access_id in {$access} or ({$table_prefix}access_id = " . ACCESS_PRIVATE . " and {$table_prefix}owner_guid = $owner))";
+ $sql = " $friends_bit ({$table_prefix}access_id in {$access} or ({$table_prefix}owner_guid = {$owner}) or ({$table_prefix}access_id = " . ACCESS_PRIVATE . " and {$table_prefix}owner_guid = $owner))";
if ($enemies_bit) {
$sql = "$enemies_bit AND ($sql)";
|