From 2d1e9126cb10f52e7711ce121f8bdaa5bdc71aa4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 16 Sep 2001 11:33:14 +0000 Subject: - Added the new user module! --- modules/node/node.module | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index b15516e43..c84c86d2f 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -108,7 +108,7 @@ function node_overview($query) { $color = array("#ffffff", "#e5e5e5"); $query = node_query($query ? $query : 0); - $result = db_query("SELECT n.*, u.name FROM node n LEFT JOIN users u ON n.author = u.id $query[1] LIMIT 50"); + $result = db_query("SELECT n.*, u.name, u.uid FROM node n LEFT JOIN user u ON n.author = u.uid $query[1] LIMIT 50"); $output .= status($query[0]); $output .= "\n"; @@ -117,7 +117,7 @@ function node_overview($query) { while ($node = db_fetch_object($result)) { $bg = $color[$i++ % sizeof($color)]; - $output .= " \n"; + $output .= " \n"; $output .= " \n"; } $output .= "
nid\">". check_output($node->title) ."$node->type". node_status($node->status) ."". check_output($node->attributes) ."". format_name($node->name) ."". format_date($node->timestamp, "small") ."
nid\">". check_output($node->title) ."$node->type". node_status($node->status) ."". check_output($node->attributes) ."". format_name($node) ."". format_date($node->timestamp, "small") ."
". implode(", ", node_links($node->nid, $node->type)) ."
\n"; @@ -126,7 +126,6 @@ function node_overview($query) { } function node_edit_option($id) { - global $user; $node = node_get_object(array("nid" => $id)); @@ -141,7 +140,6 @@ function node_edit_option($id) { } function node_edit_attribute($id) { - global $user; $node = node_get_object(array("nid" => $id)); -- cgit v1.2.3