Remove all eval instances where eval is being used to instantiate a new object using...
[civicrm-core.git] / CRM / Contact / Form / Task / Print.php
index cb3b7c89c8b0d7e2329174af5a725479e146b3d0..0d96564728b1c33a8a8df50723c72a142eaf7bf5 100644 (file)
@@ -86,15 +86,13 @@ class CRM_Contact_Form_Task_Print extends CRM_Contact_Form_Task {
 
     $returnP = isset($returnPropeties) ? $returnPropeties : "";
     $customSearchClass = $this->get('customSearchClass');
-    eval('$selector   = new ' .
-      $selectorName .
-      '( $customSearchClass,
+    $selector   = new $selectorName( $customSearchClass,
                  $fv,
                  $params,
                  $returnP,
                  $this->_action,
-                 $includeContactIds );'
-    );
+                 $includeContactIds
+      );
     $controller = new CRM_Core_Selector_Controller($selector,
       NULL,
       $sortID,