Indention, documentation

This commit is contained in:
Michael 2020-11-03 20:30:59 +00:00
parent 4965d6aa54
commit 65b07aead4
2 changed files with 9 additions and 8 deletions

View file

@ -3421,7 +3421,8 @@ class Item
// Authenticated visitor - fetch the matching permissionsets
$set = PermissionSet::get($owner_id, $remote_user);
if (!empty($set)) {
$condition = ["(`private` != ? OR (`private` = ? AND `wall` AND `psid` IN (?" . str_repeat(",?", count($set) - 1) . ")))",
$condition = ["(`private` != ? OR (`private` = ? AND `wall`
AND `psid` IN (" . implode(', ', array_fill(0, count($set), '?')) . ")))",
Item::PRIVATE, Item::PRIVATE];
$condition = array_merge($condition, $set);
}