Manually expand ACLs coming from non-permissionset tables
- Return early if parameter is empty in ACLFormatter->expand - Address https://github.com/friendica/friendica/issues/10756#issuecomment-949049195
This commit is contained in:
@@ -38,7 +38,7 @@ final class ACLFormatter
|
||||
public function expand(string $acl_string = null)
|
||||
{
|
||||
// In case there is no ID list, return empty array (=> no ACL set)
|
||||
if (!isset($acl_string)) {
|
||||
if (empty($acl_string)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user