From 293daac2333875426cc4cd6721700c406b5e2236 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 9 Apr 2013 17:38:03 +1200 Subject: [PATCH] CRM-12305 further eval removal --- CRM/Core/BAO/Block.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.25.1