$result=pager_query('SELECT c.subject, c.nid, c.cid, c.comment, c.timestamp, c.status, c.name, c.homepage, u.name AS registered_name, u.uid FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid WHERE c.status = '.$status);
$result=pager_query('SELECT c.subject, c.nid, c.cid, c.comment, c.timestamp, c.status, c.name, c.homepage, u.name AS registered_name, u.uid FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid WHERE c.status = %d'.tablesort_sql($form['header']['#value']),50,0,NULL,$status);
// build a table listing the appropriate comments
$destination=drupal_get_destination();
...
...
@@ -1119,8 +1126,6 @@ function comment_admin_overview_submit($form_id, $edit) {
$result=pager_query('SELECT c.subject, c.nid, c.cid, c.comment, c.timestamp, c.status, c.name, c.homepage, u.name AS registered_name, u.uid FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid WHERE c.status = '.$status);
$result=pager_query('SELECT c.subject, c.nid, c.cid, c.comment, c.timestamp, c.status, c.name, c.homepage, u.name AS registered_name, u.uid FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid WHERE c.status = %d'.tablesort_sql($form['header']['#value']),50,0,NULL,$status);
// build a table listing the appropriate comments
$destination=drupal_get_destination();
...
...
@@ -1119,8 +1126,6 @@ function comment_admin_overview_submit($form_id, $edit) {