Index: guestbook.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/guestbook/guestbook.install,v
retrieving revision 1.10
diff -u -p -r1.10 guestbook.install
--- guestbook.install	24 Sep 2008 15:13:39 -0000	1.10
+++ guestbook.install	6 Jan 2009 00:41:15 -0000
@@ -10,9 +10,9 @@ function guestbook_schema() {
       'id' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
       'recipient' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
       'author' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
-      'anonname' => array('type' => 'varchar', 'length' => '128', 'not null' => FALSE),
-      'anonemail' => array('type' => 'varchar', 'length' => '128', 'not null' => FALSE),
-      'anonwebsite' => array('type' => 'varchar', 'length' => '128', 'not null' => FALSE),
+      'anonname' => array('type' => 'varchar', 'length' => '128', 'not null' => FALSE, 'default' => ''),
+      'anonemail' => array('type' => 'varchar', 'length' => '128', 'not null' => FALSE, 'default' => ''),
+      'anonwebsite' => array('type' => 'varchar', 'length' => '128', 'not null' => FALSE, 'default' => ''),
       'message' => array('type' => 'text', 'not null' => TRUE),
       'commentauthor' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
       'comment' => array('type' => 'text', 'not null' => TRUE),
Index: guestbook.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/guestbook/guestbook.module,v
retrieving revision 1.17
diff -u -p -r1.17 guestbook.module
--- guestbook.module	9 Sep 2008 18:17:23 -0000	1.17
+++ guestbook.module	6 Jan 2009 00:45:28 -0000
@@ -527,13 +527,13 @@ function guestbook_form_entry_form_submi
   // Insert new message
   if ($user->uid == 0) {
     // Anonymous user.
-    db_query("INSERT INTO {guestbook} (anonname, anonemail, anonwebsite, author, recipient, message, created)
-      VALUES('%s', '%s', '%s', %d, %d, '%s', %d)", $form_state['values']['anonname'], $form_state['values']['anonemail'], $form_state['values']['anonwebsite'], 0, $uid, $message, time());
+    db_query("INSERT INTO {guestbook} (anonname, anonemail, anonwebsite, author, recipient, message, comment, created)
+      VALUES('%s', '%s', '%s', %d, %d, '%s', '%s', %d)", $form_state['values']['anonname'], $form_state['values']['anonemail'], $form_state['values']['anonwebsite'], 0, $uid, $message, '', time());
   }
   else {
     // Authenticated user.
-    db_query("INSERT INTO {guestbook} (author, recipient, message, created)
-      VALUES(%d, %d, '%s', %d)", $user->uid, $uid, $message, time());
+    db_query("INSERT INTO {guestbook} (author, recipient, message, comment, created)
+      VALUES(%d, %d, '%s', '%s', %d)", $user->uid, $uid, $message, '', time());
   }
 
   drupal_set_message(t('Your message has been added.'));
