$activityClause = NULL;
$components = CRM_Core_Component::getNames();
- foreach($components as $componentID => $componentName) {
- if (! CRM_Core_Permission::check("access $componentName")) {
+ foreach ($components as $componentID => $componentName) {
+ if (!CRM_Core_Permission::check("access $componentName")) {
$componentClause = " (activity_type.component_id IS NULL OR activity_type.component_id <> {$componentID}) ";
}
}
// CRM-12675
$components = CRM_Core_Component::getNames();
foreach ($components as $componentID => $componentName) {
- if (! CRM_Core_Permission::check("access $componentName")) {
+ if (!CRM_Core_Permission::check("access $componentName")) {
$componentClause[] = " (activity_type.component_id IS NULL OR activity_type.component_id <> {$componentID}) ";
}
}
// CRM-12675
$components = CRM_Core_Component::getNames();
foreach ($components as $componentID => $componentName) {
- if (! CRM_Core_Permission::check("access $componentName")) {
+ if (!CRM_Core_Permission::check("access $componentName")) {
$clauses[] = " ({$this->_aliases['civicrm_option_value']}.component_id IS NULL OR {$this->_aliases['civicrm_option_value']}.component_id <> {$componentID}) ";
}
}