--- signup.module.orig	2007-05-10 09:30:30.000000000 +0200
+++ signup.module	2007-06-04 16:07:16.376233600 +0200
@@ -1626,11 +1626,16 @@ function signup_broadcast_form($node) {
     '#title' => t('Subject'),
     '#required' => true,
   );
+  
+  $supported_strings = ('Supported string substitutions: %event, %username, %useremail.');
+  if (module_exists('event')) {
+    $supported_strings = ('Supported string substitutions: %event, %time, %username, %useremail.');
+  }
   $form['message'] = array(
     '#type' => 'textarea',
     '#title' => t('Message body'),
     '#required' => true,
-    '#description' => t('Body of the email message you wish to send to all users who have signed up for this @node_type.', array('@node_type' => $node->type)) .' '. t('Supported string substitutions: %event, %time, %username, %useremail.'),
+    '#description' => t('Body of the email message you wish to send to all users who have signed up for this @node_type.', array('@node_type' => $node->type)) .' '. $supported_strings,
     '#rows' => 10,
   );
   $form['send'] = array(
@@ -1692,11 +1697,14 @@ function signup_broadcast_form_submit($f
       $mail_address = $signup->anon_mail ? $signup->anon_mail : $signup->mail;
       $trans = array(
         '%event' => $event->title,
-        '%time' => _event_date(variable_get('signup_date_string', 'D, M jS, g:i A'), $event->event_start, $offset),
+        '%time' => t('[Untimed]'),
         '%username' => $signup->uid ? $signup->name : variable_get('anonymous', t('Anonymous')),
         '%useremail' => $mail_address,
 //        '%info' => $signup_info,
       );
+      if (module_exists('event')) {
+        $trans['%time'] = _event_date(variable_get('signup_date_string', 'D, M jS, g:i A'), $event->event_start, $offset);
+      }
       $message = strtr($form_values['message'], $trans);
       drupal_mail('signup_broadcast_mail', $mail_address, $subject, $message, $from);
       watchdog('signup', t('Broadcast email for %event sent to %email.', array('%event' => $event->title, '%email' => $mail_address)), WATCHDOG_NOTICE, l(t('view'), 'node/'. $event->nid));
