diff --git a/booking.emails.inc b/booking.emails.inc index 5e993c5..148e9fe 100644 --- a/booking.emails.inc +++ b/booking.emails.inc @@ -307,6 +307,7 @@ function _booking_custom_email($nid, $email_type, $sender = 'contact') { global $event; global $user; $language = user_preferred_language($user); + $params = array(); //calculate the drupal variables to use $email_subject_variable = 'booking_email_subject_' . $email_type; diff --git a/booking.module b/booking.module index e5d0569..7a470e9 100644 --- a/booking.module +++ b/booking.module @@ -980,7 +980,7 @@ function booking_mail($key, &$message, $params) { $message['params']['attachments'][] = $params['attachment']; } - //watchdog('booking_debug', "
Mail hook:\n@info", array('@info' => print_r( $message, true))); + watchdog('booking_debug', "
Mail hook:\n@info", array('@info' => print_r( $message, true))); } /**