$contactId); $websites = CRM_Core_BAO_Website::getValues($params, CRM_Core_DAO::$_nullArray); if (!empty($websites)) { foreach ($websites as $key => & $value) { $value['website_type'] = $websiteTypes[$value['website_type_id']]; } } $this->assign('contactId', $contactId); $this->assign('website', $websites); // check logged in user permission CRM_Contact_Page_View::checkUserPermission($this, $contactId); // finally call parent parent::run(); } }