From: eileen Date: Tue, 9 Apr 2013 05:38:03 +0000 (+1200) Subject: CRM-12305 further eval removal X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=293daac2333875426cc4cd6721700c406b5e2236;p=civicrm-core.git CRM-12305 further eval removal --- diff --git a/CRM/Core/BAO/Block.php b/CRM/Core/BAO/Block.php index 1c86b2c8da..a978cd1562 100644 --- a/CRM/Core/BAO/Block.php +++ b/CRM/Core/BAO/Block.php @@ -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