Fixed the "below your threshold" bug... it still had an old method in there. Zaphod is outdated as well, and Marvin doesn't contain a check for 0 in there.

3-00
Steven Wittens 2000-11-21 16:53:32 +00:00
parent ebe3dddc56
commit 01018b6830
1 changed files with 9 additions and 5 deletions

View File

@ -200,11 +200,15 @@
<INPUT TYPE="submit" NAME="op" VALUE="Save">
</FONT>
<?
$result = mysql_query("SELECT COUNT(tid) FROM comments WHERE sid = $sid AND score < $threshold");
if ($result && $number = mysql_result($result, 0)) {
?> <BR><SMALL><FONT COLOR="<? echo "$this->fgcolor2"; ?>">There are at least <? echo $number; ?> comments below your threshold.</FONT></SMALL> <?
}
<?
$number=discussion_num_filtered($sid, $pid);
if ($number>0)
{
?>
<BR><SMALL>There are at least <? echo format_plural($number, "comment", "comments"); ?> comments below your threshold.</SMALL>
<?
}
print "</TD></TR>";
print "</TABLE>";