-- CRM-9288 - Website type improvements: allow multiple websites in Profiles, respect...
[civicrm-core.git] / CRM / Contribute / Form / Contribution / Confirm.php
index 03f1378bd5353c24b57d23f54886a2e619a2daef..10804fe83c403818b20878218a9d826f33ca2138 100644 (file)
@@ -258,8 +258,8 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
 
             if ($field == 'url') {
               $blockName     = 'website';
-              $locationType  = 'website_type_id';
-              $locationValue = CRM_Utils_Array::value("{$loc}-website_type_id", $this->_params['onbehalf']);
+              $locationType = 'website_type_id';
+              list($field, $locationValue) = explode('-', $loc);
             }
             elseif ($field == 'im') {
               $fieldName = 'name';