diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-27 23:23:36 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-27 23:23:36 +0000 |
commit | 30af850c5fca29c5f35f664bbe1c0ff2933ea186 (patch) | |
tree | 6d0180b823e38d62e5779ac442760faababb5c05 /templates/show_object_rating.inc.php | |
parent | 583c9ee9b6ea49e6cc8920690922abb229b01f36 (diff) | |
download | ampache-30af850c5fca29c5f35f664bbe1c0ff2933ea186.tar.gz ampache-30af850c5fca29c5f35f664bbe1c0ff2933ea186.tar.bz2 ampache-30af850c5fca29c5f35f664bbe1c0ff2933ea186.zip |
fixed ratings logic problem
Diffstat (limited to 'templates/show_object_rating.inc.php')
-rw-r--r-- | templates/show_object_rating.inc.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/show_object_rating.inc.php b/templates/show_object_rating.inc.php index 91df1f15..1be182cb 100644 --- a/templates/show_object_rating.inc.php +++ b/templates/show_object_rating.inc.php @@ -41,6 +41,11 @@ while ($score < 6) { echo "<img src=\"" . conf('web_path') . "/images/ratings/x_off.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\">\n"; $found_on = true; } + elseif ($score == '0') { + echo "<a href=\"" . $base_url . "&rating=$score\">\n\t"; + echo "<img src=\"" . conf('web_path') . "/images/ratings/x_off.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\">\n"; + echo "</a>"; + } elseif ($score == $rating->rating) { echo "<img src=\"" . conf('web_path') . "/images/ratings/star.gif\" border=\"0\" alt=\"" . get_rating_name($score) . "\">\n"; $found_on = true; |