$tplParams['participant_status'] = CRM_Event_PseudoConstant::participantStatus($statusId, NULL, 'label');
}
//CRM-15754 - if participant_status contains status ID
- elseif (CRM_Utils_Rule::integer($tplParams['participant_status'])) {
+ elseif (!empty($tplParams['participant_status']) && CRM_Utils_Rule::integer($tplParams['participant_status'])) {
$tplParams['participant_status'] = CRM_Event_PseudoConstant::participantStatus($tplParams['participant_status'], NULL, 'label');
}
if ($this->_priceSetId && !CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $this->_priceSetId, 'is_quick_config')) {
$lineItemForTemplate = array();
$getTaxDetails = FALSE;
- foreach ($this->_lineItem as $key => $value) {
- if (!empty($value)) {
- $lineItemForTemplate[$key] = $value;
- }
- if ($invoicing) {
- foreach ($value as $v) {
- if (isset($v['tax_rate'])) {
- $getTaxDetails = TRUE;
+ if (!empty($this->_lineItem) && is_array($this->_lineItem)) {
+ foreach ($this->_lineItem as $key => $value) {
+ if (!empty($value)) {
+ $lineItemForTemplate[$key] = $value;
+ }
+ if ($invoicing) {
+ foreach ($value as $v) {
+ if (isset($v['tax_rate'])) {
+ $getTaxDetails = TRUE;
+ }
}
}
}
$taxAmount = 0;
if ($this->_priceSetId && !CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $this->_priceSetId, 'is_quick_config')) {
$lineItemForTemplate = array();
- foreach ($this->_lineItem as $key => $value) {
- if (!empty($value)) {
- $lineItemForTemplate[$key] = $value;
- if ($invoicing) {
- foreach ($value as $v) {
- if (isset($v['tax_amount']) || isset($v['tax_rate'])) {
- $taxAmount += $v['tax_amount'];
- $getTaxDetails = TRUE;
+ if (!empty($this->_lineItem) && is_array($this->_lineItem)) {
+ foreach ($this->_lineItem as $key => $value) {
+ if (!empty($value)) {
+ $lineItemForTemplate[$key] = $value;
+ if ($invoicing) {
+ foreach ($value as $v) {
+ if (isset($v['tax_amount']) || isset($v['tax_rate'])) {
+ $taxAmount += $v['tax_amount'];
+ $getTaxDetails = TRUE;
+ }
}
}
}