X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FBAO%2FSearchCustom.php;h=76ed287cbf86ee120fb7dc4c04c67adfd82bb311;hb=4d5c2eb510a6be0017085d1f8dae09495e28e74b;hp=aa341e12a91c7ad2fca379d2eba24db59fa06a11;hpb=a2df28511ca0996d0c84e79a3d44c58d7e33a74b;p=civicrm-core.git diff --git a/CRM/Contact/BAO/SearchCustom.php b/CRM/Contact/BAO/SearchCustom.php index aa341e12a9..76ed287cbf 100644 --- a/CRM/Contact/BAO/SearchCustom.php +++ b/CRM/Contact/BAO/SearchCustom.php @@ -99,7 +99,7 @@ class CRM_Contact_BAO_SearchCustom { } // instantiate the new class - eval('$customClass = new ' . $customSearchClass . '( $formValues );'); + $customClass = new $customSearchClass( $formValues ); return $customClass; }