includes/comment.php
changeset 1011 96119a79cf81
parent 972 437f2505d340
child 1016 6d32d80b2192
--- a/includes/comment.php	Fri May 29 14:03:05 2009 -0400
+++ b/includes/comment.php	Fri May 29 16:37:32 2009 -0400
@@ -115,7 +115,7 @@
         $ret['comments'] = Array();
         if (!$q)
           $db->die_json();
-        if ( $row = $db->fetchrow() )
+        if ( $row = $db->fetchrow($q) )
         {
           do {
             
@@ -162,7 +162,7 @@
             // Add the comment to the list
             $ret['comments'][] = $row;
             
-          } while ( $row = $db->fetchrow() );
+          } while ( $row = $db->fetchrow($q) );
         }
         $db->free_result();
         $ret['count_appr'] = $count_appr;