From 6f0b6c914560d9cc9dc30913105f74f4360d3032 Mon Sep 17 00:00:00 2001
From: srosse <none@none>
Date: Wed, 24 Apr 2013 16:37:20 +0200
Subject: [PATCH] OO-490: fix double rendering of ratings

---
 .../impl/ui/_content/userCommentsAndRatings.html              | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/olat/core/commons/services/commentAndRating/impl/ui/_content/userCommentsAndRatings.html b/src/main/java/org/olat/core/commons/services/commentAndRating/impl/ui/_content/userCommentsAndRatings.html
index 2df0f4ed84b..7dced3b07d7 100644
--- a/src/main/java/org/olat/core/commons/services/commentAndRating/impl/ui/_content/userCommentsAndRatings.html
+++ b/src/main/java/org/olat/core/commons/services/commentAndRating/impl/ui/_content/userCommentsAndRatings.html
@@ -1,12 +1,12 @@
 <div class="b_ratings_and_comments">
 	#if ($enableRatings)
 	<div id="b_rating_wrapper_$viewIdent" class="b_rating_wrapper">
-		#if($r.render("ratingUserC"))
+		#if($r.available("ratingUserC"))
 			<div id="b_rating_$viewIdent" style="display: none">
 			$r.render("ratingUserC")
 			</div>
 		#end
-		#if($r.render("ratingAverageC"))
+		#if($r.available("ratingAverageC"))
 			$r.render("ratingAverageC")
 		#end
 	</div>
-- 
GitLab