From 7f2e4572fa1f1e6bcc14f0cc948f6fd988a7ff92 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 3 Nov 2000 07:57:28 +0000 Subject: - fixed bug in search.php - fixed bug in discussion.php - theme update: comment() now takes 3 arguments: $comment - an object with comment data $link - a link to the reply form of that particular comment $thread - the subthread of that particular comment - theme 'marvin' and theme 'zaphod' are updated, theme 'unconed' is left to be done --- account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'account.php') diff --git a/account.php b/account.php index 79267fa9a..b3851e6cb 100644 --- a/account.php +++ b/account.php @@ -201,7 +201,7 @@ function account_user($uname) { $box1 .= " Bio:". format_data($account->bio) ."\n"; $box1 .= "\n"; - $result = db_query("SELECT c.cid, c.pid, c.sid, c.subject, c.timestamp, s.subject AS story FROM comments c LEFT JOIN users u ON u.id = c.author LEFT JOIN stories s ON s.id = c.sid WHERE u.userid = '$uname' AND c.timestamp > ". (time() - 1209600) ." ORDER BY cid DESC LIMIT 10"); + $result = db_query("SELECT c.cid, c.pid, c.sid, c.subject, c.timestamp, s.subject AS story FROM comments c LEFT JOIN users u ON u.id = c.author LEFT JOIN stories s ON s.id = c.sid WHERE u.userid = '$uname' AND s.status = 2 AND s.timestamp > ". (time() - 1209600) ." ORDER BY cid DESC LIMIT 10"); while ($comment = db_fetch_object($result)) { $box2 .= "\n"; $box2 .= " \n"; @@ -418,4 +418,4 @@ switch ($op) { account_user($user->userid); } -?> \ No newline at end of file +?> -- cgit v1.2.3
Comment:sid&cid=$comment->cid&pid=$comment->pid#$comment->cid\">". check_output($comment->subject) ."