--- draft.module.orig	2008-10-21 17:01:27.000000000 +0200
+++ draft.module	2008-11-02 18:42:01.000000000 +0100
@@ -102,9 +102,9 @@ function draft_views_api() {
 function draft_form_alter(&$form, &$form_state, $form_id) {
   global $user;
 
-  if (isset($form['type'])) {
+  if (isset($form['type']) && isset($form['#node'])) {
     $node = $form['#node'];
-    if (user_access('access save as draft') && $form['type']['#value'] .'_node_form' == $form_id && variable_get("save_as_draft_$node->type", FALSE)) {
+    if (user_access('access save as draft') && isset($form['type']['#value']) && $form['type']['#value'] .'_node_form' == $form_id && variable_get("save_as_draft_$node->type", FALSE)) {
       // Allow drafts on Edit depending on whether the module administrator has said that is the case
       if (is_null($node->nid) || (variable_get('draft_on_edit', 0) && !is_null($node->nid))) {
         if ($_GET['draft_id'] && is_numeric($_GET['draft_id'])) {
