Skip to content
Snippets Groups Projects
Commit 293daac2 authored by eileen's avatar eileen
Browse files

CRM-12305 further eval removal

parent f407e410
No related branches found
No related tags found
No related merge requests found
......@@ -359,7 +359,8 @@ class CRM_Core_BAO_Block {
}
$blockFields = array_merge($value, $contactFields);
eval('$blocks[] = CRM_Core_BAO_' . $name . '::add( $blockFields );');
$baoString = 'CRM_Core_BAO_' . $name;
$blocks[] = $baoString::add( $blockFields );
}
// we need to delete blocks that were deleted during update
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment