Skip to content

Commit

Permalink
WP - Handle updated permissions format from civicrm#29173
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Feb 7, 2024
1 parent fd49130 commit 87d6738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/ACL/Form/WordPress/Permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public function buildQuickForm() {

$descArray = [];
foreach ($permissionsDesc as $perm => $attr) {
if (count($attr) > 1) {
$descArray[$perm] = $attr['description'] ?? $attr[1];
if (!empty($attr['description'])) {
$descArray[$perm] = $attr['description'];
}
}

Expand Down

0 comments on commit 87d6738

Please sign in to comment.