# HG changeset patch # User Dan # Date 1243629452 14400 # Node ID 96119a79cf81449c989f6fb2da12d9501a52397d # Parent 12e76b1acb4ea52750319a4e48615521a0258d57 Comments: fixed failure to supply $q to fetchrow() in JSON fetcher diff -r 12e76b1acb4e -r 96119a79cf81 includes/comment.php --- 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;