Skip to content
Snippets Groups Projects
Commit 01018b68 authored by Steven Wittens's avatar Steven Wittens
Browse files

Fixed the "below your threshold" bug... it still had an old method in there....

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.
parent ebe3dddc
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -200,11 +200,15 @@ function commentControl($sid, $title, $threshold, $mode, $order) {
<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>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment