From c94c90dd94f1d1d08da63f0f8c95c09a39f5fe5a Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 27 Jun 2017 20:56:29 +1000 Subject: [PATCH] blah --- booking.emails_admin.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, );