diff --git a/booking.emails_admin.inc b/booking.emails_admin.inc index f70fdd5..7f2ed4e 100644 --- a/booking.emails_admin.inc +++ b/booking.emails_admin.inc @@ -88,7 +88,7 @@ function booking_emails_admin() { '#title' => t('Payment Complete Email'), '#description' => t('Email text to indicate a person has booked in, fully paid and is not on the waiting list. ' . 'This will be sent either at initial registration if the full amount is paid, or when the balance is paid.'), - '#default_value' => $form_type == 'text_format' ? variable_get('booking_email_regn_complete_text')['value'] : variable_get('booking_email_regn_complete_text', $booking_email_regn_complete_text), + '#default_value' => isset(variable_get('booking_email_regn_complete_text')['value']) ? variable_get('booking_email_regn_complete_text')['value'] : variable_get('booking_email_regn_complete_text', $booking_email_regn_complete_text), '#type' => $form_type, '#format' => $form_format, );