Mercurial > hg > fapweb
changeset 698:3f322be347d6
Fix the results display.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 10 Nov 2014 17:46:42 +0200 |
parents | 215813020256 |
children | 9a948144dcc9 |
files | msite.inc.php |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/msite.inc.php Mon Nov 10 17:46:34 2014 +0200 +++ b/msite.inc.php Mon Nov 10 17:46:42 2014 +0200 @@ -520,7 +520,7 @@ if ($showAuthor) $out .= sprintf(" by %s", $html ? chentities($author) : $author); - if ($points != FALSE) + if ($points !== FALSE) $out .= sprintf(" (%d pts)", $points); return $out."\n"; @@ -598,7 +598,7 @@ $out .= " -''-"; $out .= stGetCompoResultLine($html, $entry, - ($compo["ctype"] == COMPO_POINTS) ? $entry["votesum"] : FALSE, + ($compo["ctype"] == COMPO_POINTS) ? $entry["evalue"] : FALSE, $compo["show_authors"]); $prev = $entry["evalue"];