Index: flag.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/flag/Attic/flag.module,v
retrieving revision 1.11.2.72.2.30
diff -u -r1.11.2.72.2.30 flag.module
--- flag.module	30 Nov 2009 07:41:46 -0000	1.11.2.72.2.30
+++ flag.module	8 Jan 2010 05:16:36 -0000
@@ -781,7 +781,7 @@
 
   if ($flag->content_type == 'comment') {
     // Restrict access by comment ownership.
-    $nids = implode(',', array_map('intval', array_keys($content_ids)));
+    $cids = implode(',', array_map('intval', array_keys($content_ids)));
     $result = db_query("SELECT c.cid, c.nid, c.uid as comment_uid, n.nid as node_uid FROM {comments} c LEFT JOIN {node} n ON c.nid = n.nid WHERE cid IN ($cids)");
     while ($row = db_fetch_object($result)) {
       if ($flag->access_author == 'node_own') {
