From 0000c2e401290042d7d4eb140acd0f1652f13176 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 9 May 2001 18:28:09 +0000 Subject: - Code review: improved search API, tidied up the search related code, and fixed a tiny bug when searching for users. --- modules/comment/comment.module | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 9af8d04e8..24b156443 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1,11 +1,10 @@ check_output($comment->subject), "link" => (user_access($user, "comment") ? "admin.php?mod=comment&op=edit&id=$comment->cid" : "node.php?id=$comment->lid&cid=$comment->cid"), "user" => $comment->userid, "date" => $comment->timestamp)); + $find[$i++] = array("title" => check_output($comment->subject), "link" => (user_access($user, "comment") ? "admin.php?mod=comment&op=edit&id=$comment->cid" : "node.php?id=$comment->lid&cid=$comment->cid"), "user" => $comment->userid, "date" => $comment->timestamp); } return $find; } -- cgit v1.2.3