Merge pull request #4709 from jitendrapurohit/webtestforCRM-15662
[civicrm-core.git] / CRM / Contact / Form / ProfileContact.php
index 49a6a5ee1d95aaf967fa70bae4703b348b3d992c..b6f12cbf5703130978171c2a2fb2859c98d964da 100644 (file)
@@ -111,9 +111,12 @@ class CRM_Contact_Form_ProfileContact {
     }
   }
 
+  /**
+   * @param $form
+   */
   static function postProcess($form) {
     $params = $form->_params;
-    if ($form->_honor_block_is_active && !empty($params['soft_credit_type_id'])) {
+    if (!empty($form->_honor_block_is_active) && !empty($params['soft_credit_type_id'])) {
       $honorId = null;
 
       //check if there is any duplicate contact