Skip to content

Commit 4aebaeb

Browse files
authored
Merge pull request #496 from slackday/fix/undefined-array-index-ParticipantVat
Fix php error undefined array index ParticipantVat
2 parents cec29cb + 618e503 commit 4aebaeb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/edu-shortcodes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ function eduadmin_get_detailinfo( $attributes ) {
446446
$ret_str .= '<div class="pricename"><span class="pricename-price">' . esc_html( edu_get_price( current( $prices )['Price'], $selected_course['ParticipantVat'], $attributes['eventprice'] ) ) . "</span></div>\n";
447447
} else {
448448
foreach ( $prices as $price ) {
449-
$ret_str .= wp_kses_post( sprintf( '<div class="pricename"><span class="pricename-description">%1$s</span> <span class="pricename-price">%2$s</span></div>', $price['PriceNameDescription'], edu_get_price( $price['Price'], $edo['ParticipantVat'], $attributes['eventprice'] ) ) ) . "\n";
449+
$ret_str .= wp_kses_post( sprintf( '<div class="pricename"><span class="pricename-description">%1$s</span> <span class="pricename-price">%2$s</span></div>', $price['PriceNameDescription'], edu_get_price( $price['Price'], $selected_course['ParticipantVat'], $attributes['eventprice'] ) ) ) . "\n";
450450
}
451451
}
452452
}

0 commit comments

Comments
 (0)