--- ./modules/node/node.pages.inc	2010-05-10 08:34:39.000000000 +0200
+++ ./modules/node/node.pages.inc	2010-05-17 20:07:45.000000000 +0200
@@ -386,16 +386,31 @@ function node_form_submit($form, &$form_
   $insert = empty($node->nid);
   node_save($node);
   $node_link = l(t('view'), 'node/' . $node->nid);
-  $watchdog_args = array('@type' => $node->type, '%title' => $node->title);
-  $t_args = array('@type' => node_type_get_name($node), '%title' => $node->title);
+  if (isset($node->title)) {
+    $watchdog_args = array('@type' => $node->type, '%title' => $node->title);
+    $t_args = array('@type' => node_type_get_name($node), '%title' => $node->title);
 
-  if ($insert) {
-    watchdog('content', '@type: added %title.', $watchdog_args, WATCHDOG_NOTICE, $node_link);
-    drupal_set_message(t('@type %title has been created.', $t_args));
+    if ($insert) {
+      watchdog('content', '@type: added %title.', $watchdog_args, WATCHDOG_NOTICE, $node_link);
+      drupal_set_message(t('@type %title has been created.', $t_args));
+    }
+    else {
+      watchdog('content', '@type: updated %title.', $watchdog_args, WATCHDOG_NOTICE, $node_link);
+      drupal_set_message(t('@type %title has been updated.', $t_args));
+    }
   }
   else {
-    watchdog('content', '@type: updated %title.', $watchdog_args, WATCHDOG_NOTICE, $node_link);
-    drupal_set_message(t('@type %title has been updated.', $t_args));
+    $watchdog_args = array('@type' => $node->type);
+    $t_args = array('@type' => node_type_get_name($node));
+
+    if ($insert) {
+      watchdog('content', '@type: added.', $watchdog_args, WATCHDOG_NOTICE, $node_link);
+      drupal_set_message(t('@type has been created.', $t_args));
+    }
+    else {
+      watchdog('content', '@type: updated.', $watchdog_args, WATCHDOG_NOTICE, $node_link);
+      drupal_set_message(t('@type has been updated.', $t_args));
+    }
   }
   if ($node->nid) {
     unset($form_state['rebuild']);
