mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Fix variable name
The variable was renamed but this line was accidently overseen
see 62eb16e9ad (diff-785d24b46fdf749363656f33208f941ea0eca809c7c76452180a0bfc16df68a3R2555)
This commit is contained in:
parent
3535c7c4cd
commit
28f2b7fc81
1 changed files with 3 additions and 3 deletions
|
@ -3198,10 +3198,10 @@ class Item
|
|||
} elseif ($remote_user) {
|
||||
// Authenticated visitor - fetch the matching permissionsets
|
||||
$permissionSets = DI::permissionSet()->selectByContactId($remote_user, $owner_id);
|
||||
if (!empty($set)) {
|
||||
if (!empty($permissionSets)) {
|
||||
$condition = [
|
||||
"(`private` != ? OR (`private` = ? AND `wall`
|
||||
AND `psid` IN (" . implode(', ', array_fill(0, count($set), '?')) . ")))",
|
||||
AND `psid` IN (" . implode(', ', array_fill(0, count($permissionSets), '?')) . ")))",
|
||||
self::PRIVATE, self::PRIVATE
|
||||
];
|
||||
$condition = array_merge($condition, $permissionSets->column('id'));
|
||||
|
@ -3247,7 +3247,7 @@ class Item
|
|||
*/
|
||||
$permissionSets = DI::permissionSet()->selectByContactId($remote_user, $owner_id);
|
||||
|
||||
if (!empty($set)) {
|
||||
if (!empty($permissionSets)) {
|
||||
$sql_set = sprintf(" OR (" . $table . "`private` = %d AND " . $table . "`wall` AND " . $table . "`psid` IN (", self::PRIVATE) . implode(',', $permissionSets->column('id')) . "))";
|
||||
} else {
|
||||
$sql_set = '';
|
||||
|
|
Loading…
Reference in a new issue