=== modified file 'captcha.install'
--- captcha.install	2007-06-20 22:10:06 +0000
+++ captcha.install	2007-06-21 08:56:01 +0000
@@ -39,10 +39,13 @@
       'comment_form' => t('Comment form'),
       'contact_mail_user' => t('User contact form'),
       'contact_mail_page' => t('Sitewide contact form'),
+      'user_register' => t('Registration of new user'),
+      'user_pass' => t('Request for new password'),
     );
     foreach($forms as $form_id=>$description) {
-      db_query("INSERT INTO {captcha_points} (form_id, description, captcha_type, visible) VALUES ('%s', '%s', '%s', %d)", $form_id, $description, 'NULL', 1);
+      db_query("INSERT INTO {captcha_points} (form_id, description, captcha_type, visible) VALUES ('%s', '%s', %s, %d)", $form_id, $description, 'NULL', 1);
     }
+    drupal_set_message(t('The installation of the captcha_points table and default entries was successful'), 'status');
   } else {
     drupal_set_message(t('The installation of the captcha module was unsuccessful'), 'error');
   }

=== modified file 'captcha.module'
--- captcha.module	2007-06-21 08:11:05 +0000
+++ captcha.module	2007-06-21 08:57:08 +0000
@@ -1,7 +1,6 @@
 <?php
 // $Id$
 
-
 define('CAPTCHA_DESCRIPTION', 'This question is used to make sure you are a human visitor and to prevent spam submissions.');
 
 /**
@@ -294,6 +293,9 @@
     // get captcha module
     list($captcha_module, $captcha_type) = explode('::', $captcha_type);
     $result = module_invoke($captcha_module, 'captcha', 'generate', $captcha_type);
+    if (!$result) {
+      return;
+    }
     $captcha_description = variable_get('captcha_description', CAPTCHA_DESCRIPTION);
     if ($captcha_description) {
       $form['captcha'] = array(

