diff --git nodecomment_notify.module nodecomment_notify.module
index a2acc07..33bf0c6 100644
--- nodecomment_notify.module
+++ nodecomment_notify.module
@@ -29,11 +29,11 @@ function nodecomment_notify_form_alter(&$form, &$form_state, $form_id) {
     return;
   }
 
-  $parent = node_load($node->comment_target_nid);
+  $target = node_load($node->comment_target_nid);
 
   // Only add the checkbox if this is an enabled content type
-  $enabled_types = variable_get('comment_notify_node_types', array($parent->type => TRUE));
-  if (empty($enabled_types[$parent->type])) {
+  $enabled_types = variable_get('comment_notify_node_types', array($target->type => TRUE));
+  if (empty($enabled_types[$target->type])) {
     return;
   }
 
@@ -46,7 +46,7 @@ function nodecomment_notify_form_alter(&$form, &$form_state, $form_id) {
   if ($user->uid == 0) {
     // If anonymous users can't enter their e-mail don't tempt them with the checkbox.
     $anon_meta_info = variable_get('comment_anonymous_'. $target->type, COMMENT_ANONYMOUS_MAYNOT_CONTACT);
-    if ($anon_meta_info == COMMENT_ANONYMOUS_MAY_NOT_CONTACT) {
+    if ($anon_meta_info == COMMENT_ANONYMOUS_MAYNOT_CONTACT) {
       return;
     }
     $preference = variable_get('comment_notify_default_anon_mailalert', COMMENT_NOTIFY_DISABLED);
