Remove all eval instances where eval is being used to instantiate a new object using...
[civicrm-core.git] / CRM / Contact / BAO / SearchCustom.php
index aa341e12a91c7ad2fca379d2eba24db59fa06a11..76ed287cbf86ee120fb7dc4c04c67adfd82bb311 100644 (file)
@@ -99,7 +99,7 @@ class CRM_Contact_BAO_SearchCustom {
     }
 
     // instantiate the new class
-    eval('$customClass = new ' . $customSearchClass . '( $formValues );');
+    $customClass = new $customSearchClass( $formValues );
 
     return $customClass;
   }