- forgot to disable some debug information

3-00
Dries Buytaert 2001-04-16 12:31:11 +00:00
parent b9952f537d
commit a61830b45e
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ function node_del($field, $value) {
}
function node_get_comments($nid) {
$comment = db_fetch_object(db_query("SELECT COUNT(c.lid) AS number FROM node n LEFT JOIN comments c ON n.nid = c.lid WHERE n.nid = '$nid' GROUP BY n.nid", 1));
$comment = db_fetch_object(db_query("SELECT COUNT(c.lid) AS number FROM node n LEFT JOIN comments c ON n.nid = c.lid WHERE n.nid = '$nid' GROUP BY n.nid"));
return $comment->number ? $comment->number : 0;
}