Index: journal.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/journal/journal.module,v
retrieving revision 1.1.2.10
diff -u -p -r1.1.2.10 journal.module
--- journal.module	3 May 2008 16:11:35 -0000	1.1.2.10
+++ journal.module	3 May 2008 16:31:14 -0000
@@ -68,6 +68,9 @@ function journal_form_alter($form_id, &$
     return;
   }
   $entry_required = FALSE;
+  if (!isset($form['#submit'])) {
+    $form['#submit'] = array();
+  }
 
   // Shift system_settings_form buttons.
   if (isset($form['#base']) && $form['#base'] == 'system_settings_form') {
@@ -83,7 +86,7 @@ function journal_form_alter($form_id, &$
   // Prepend our journal submit handler, so we can eliminate the form value of
   // journal_entry, which would be saved as a variable in system_settings_form()
   // otherwise.
-  $form['#submit'] = array('journal_form_submit' => array()) + (array)$form['#submit'];
+  $form['#submit'] = array('journal_form_submit' => array()) + $form['#submit'];
   
   // Store the path on which this form was initially displayed.
   // We need to store this in a hidden field, since forms with custom '#action's
