Index: security_review.checks.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/security_review/security_review.checks.inc,v
retrieving revision 1.1.2.12
diff -u -p -r1.1.2.12 security_review.checks.inc
--- security_review.checks.inc	3 Dec 2010 22:36:37 -0000	1.1.2.12
+++ security_review.checks.inc	2 Jan 2011 20:33:16 -0000
@@ -445,7 +445,8 @@ function security_review_check_nodes($la
   $timestamp = NULL;
   
   $sql = "SELECT n.nid FROM {node} n INNER JOIN {node_revisions} r ON n.vid = r.vid WHERE r.body LIKE '%s' ";
-  if (!is_null($last_check)) {
+  // If the check passed before only look at nodes since then.
+  if (!is_null($last_check) && $last_check['result'] == '1') {
     $sql .= " AND n.changed >= %d";
     $timestamp = $last_check['lastrun'];
   }
@@ -500,7 +501,8 @@ function security_review_check_comments(
   $timestamp = NULL;
   if (module_exists('comment')) {
     $sql = "SELECT nid, cid FROM {comments} WHERE comment LIKE '%s'" ;
-    if (!is_null($last_check)) {
+    // If the check passed before only look at comments since then.
+    if (!is_null($last_check) && $last_check['result'] == '1') {
       $sql .= " AND timestamp >= %d";
       $timestamp = $last_check['lastrun'];
     }
