Merge pull request #22255 from MegaphoneJon/membership-14-2021
[civicrm-core.git] / CRM / Admin / Page / AJAX.php
index 2072b2b68716aba3cca34e77bf5eb42fed6e2af8..e300e60add5b8b346314af84e95b60f4665894e1 100644 (file)
@@ -224,7 +224,7 @@ class CRM_Admin_Page_AJAX {
           $ret['content'] = ts('Are you sure you want to disable this ACL?');
           break;
 
-        case 'CRM_ACL_BAO_EntityRole':
+        case 'CRM_ACL_BAO_ACLEntityRole':
           $ret['content'] = ts('Are you sure you want to disable this ACL Role Assignment?');
           break;
 
@@ -380,7 +380,7 @@ class CRM_Admin_Page_AJAX {
         }
       }
       else {
-        $hasChildTags = empty($childTagIDs[$dao->id]) ? FALSE : TRUE;
+        $hasChildTags = !empty($childTagIDs[$dao->id]);
         $usedFor = (array) explode(',', $dao->used_for);
         $tag = [
           'id' => $dao->id,