Skip to content
Snippets Groups Projects
Commit cce18287 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #48042 by markus: removed unused variable.

parent 9639b7dc
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -74,10 +74,6 @@ function tracker_track_user() {
* Menu callback. Prints a listing of active nodes on the site.
*/
function tracker_page($uid = 0) {
global $user;
$output .= '';
if ($uid) {
$sql = 'SELECT DISTINCT(n.nid), n.title, n.type, n.changed, n.uid, u.name, l.last_comment_timestamp AS last_post, l.comment_count FROM {node} n INNER JOIN {node_comment_statistics} l ON n.nid = l.nid INNER JOIN {users} u ON n.uid = u.uid LEFT JOIN {comments} c ON n.nid = c.nid AND (c.status = %d OR c.status IS NULL) WHERE n.status = 1 AND (n.uid = %d OR c.uid = %d) ORDER BY last_post DESC';
$sql = db_rewrite_sql($sql);
......@@ -116,12 +112,10 @@ function tracker_page($uid = 0) {
$header = array(t('Type'), t('Post'), t('Author'), t('Replies'), t('Last post'));
$output .= '<div id="tracker">';
$output = '<div id="tracker">';
$output .= theme('table', $header, $rows);
$output .= theme('pager', NULL, 25, 0);
$output .= '</div>';
return $output;
}
......@@ -74,10 +74,6 @@ function tracker_track_user() {
* Menu callback. Prints a listing of active nodes on the site.
*/
function tracker_page($uid = 0) {
global $user;
$output .= '';
if ($uid) {
$sql = 'SELECT DISTINCT(n.nid), n.title, n.type, n.changed, n.uid, u.name, l.last_comment_timestamp AS last_post, l.comment_count FROM {node} n INNER JOIN {node_comment_statistics} l ON n.nid = l.nid INNER JOIN {users} u ON n.uid = u.uid LEFT JOIN {comments} c ON n.nid = c.nid AND (c.status = %d OR c.status IS NULL) WHERE n.status = 1 AND (n.uid = %d OR c.uid = %d) ORDER BY last_post DESC';
$sql = db_rewrite_sql($sql);
......@@ -116,12 +112,10 @@ function tracker_page($uid = 0) {
$header = array(t('Type'), t('Post'), t('Author'), t('Replies'), t('Last post'));
$output .= '<div id="tracker">';
$output = '<div id="tracker">';
$output .= theme('table', $header, $rows);
$output .= theme('pager', NULL, 25, 0);
$output .= '</div>';
return $output;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment