Skip to content

Commit

Permalink
T11595: fix ManageWikiPermissions if there are no active permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega committed Jan 31, 2024
1 parent 28c933f commit f01696a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/FormFactory/ManageWikiFormFactoryBuilder.php
Expand Up @@ -779,7 +779,7 @@ private static function buildDescriptorPermissions(
]
];

if ( $ceMW && ( count( $permList['permissions'] ) > 0 ) ) {
if ( $ceMW && ( count( $permList['permissions'] ?? [] ) > 0 ) ) {
$formDescriptor['delete-checkbox'] = [
'type' => 'check',
'label-message' => 'permissions-delete-checkbox',
Expand Down

0 comments on commit f01696a

Please sign in to comment.