diff --git a/src/main/java/de/bps/onyx/plugin/run/OnyxRunController.java b/src/main/java/de/bps/onyx/plugin/run/OnyxRunController.java
index 446d769852c1c9c25e71a40dd47599f10cdaf35d..b85dc027c8e89cd5127fc94e7c66424300ef340e 100644
--- a/src/main/java/de/bps/onyx/plugin/run/OnyxRunController.java
+++ b/src/main/java/de/bps/onyx/plugin/run/OnyxRunController.java
@@ -214,6 +214,12 @@ public class OnyxRunController extends BasicController {
 
 		if (viewmode != SURVEYVIEW) {
 			ScoreEvaluation se = null;
+			
+			//<OLATCE-1232>
+			boolean isVisibilityPeriod = AssessmentHelper.isResultVisible(modConfig);
+			vc.contextPut("showResultsVisible", new Boolean(isVisibilityPeriod));
+			//</OLATCE-1232>
+				
 			if (courseNodeTest != null) {
 				// <OLATCE-498>
 				Integer attempts = courseNodeTest.getUserAttempts(userCourseEnv);
@@ -271,7 +277,7 @@ public class OnyxRunController extends BasicController {
 			if (hasResult) {
 				vc.contextPut("hasResult", Boolean.TRUE);
 				boolean isPassesSet = se.getPassed() != null;
-				vc.contextPut(IQEditController.CONFIG_KEY_RESULT_ON_HOME_PAGE, modConfig.get(IQEditController.CONFIG_KEY_RESULT_ON_HOME_PAGE));
+				vc.contextPut("showResultsOnHomePage", modConfig.get(IQEditController.CONFIG_KEY_RESULT_ON_HOME_PAGE));
 				if (isPassesSet) {
 					vc.contextPut("passed", se.getPassed());
 				} else {
diff --git a/src/main/java/de/bps/onyx/plugin/run/_content/onyxrun.html b/src/main/java/de/bps/onyx/plugin/run/_content/onyxrun.html
index 897543b96e13617544ad76add644256374d19463..d2a8279deda1f514c2c58c9c96fd8d97b72ed489 100644
--- a/src/main/java/de/bps/onyx/plugin/run/_content/onyxrun.html
+++ b/src/main/java/de/bps/onyx/plugin/run/_content/onyxrun.html
@@ -1,4 +1,3 @@
-##
 <h3>$!menuTitle</h3>
 <i>$!displayTitle</i>
 
@@ -24,38 +23,26 @@
 			#end
 			</td>
 	</tr>
-	<tr>
-			#if ($attampts)
-			<td>			
-				$r.translate("attempts.yourattempts"): 
-			</td>
-			<td>
-				$attempts
-			</td>
-			#end
+	#if($attempts)
+		<tr>
+			<td>$r.translate("attempts.yourattempts"):</td>
+			<td>$attempts</td>
 		</tr>
+	#end
 	#if ($attempts && $attempts >0 || $self)
 		<tr>
 			<td colspan="2"><b>$r.translate("attempts.result")</b></td>
 		</tr>
 		#foreach ($var in $qtivars)
 		<tr>
-			<td>			
-				${var.getIdentifier()}: 
-			</td>
-			<td>
-				${var.getValue()}
-			</td>
+			<td>${var.getIdentifier()}:</td>
+			<td>${var.getValue()}</td>
 		</tr>
-      	#end
-      	#if ($hasResult == true)
-      	<tr>
-			<td>			
-				$r.translate("score.yourscore"): 
-			</td>
-			<td>
-				$score
-			</td>
+    #end
+    #if ($hasResult == true)
+    <tr>
+			<td>$r.translate("score.yourscore"):</td>
+			<td>$score</td>
 		</tr>
 		##<OLATCE-1014> hide status - line if there is no passed value set
 		#if($passed != "")
@@ -73,13 +60,11 @@
 		##<OLATCE-1014>
 		#end
 		##</OLATCE-1014>
-		#else
+	#else
 		<tr>
-			<td>
-			$r.translate("no.testresults")
-			</td>
+			<td colspan="2">$r.translate("no.testresults")</td>
 		</tr>
-		#end
+	#end
 		<tr>
 			<td>
 			#if($showResultsOnHomePage && $attempts && $attempts >0)
diff --git a/src/main/java/org/olat/course/assessment/AssessmentHelper.java b/src/main/java/org/olat/course/assessment/AssessmentHelper.java
index d8c1a0e5552dc8cffcd892ec613ccb2dfd404469..d72dd7e8dc50067d69b7df5e3f944336b68a9766 100644
--- a/src/main/java/org/olat/course/assessment/AssessmentHelper.java
+++ b/src/main/java/org/olat/course/assessment/AssessmentHelper.java
@@ -436,17 +436,16 @@ public class AssessmentHelper {
 	public static boolean isResultVisible(ModuleConfiguration modConfig) {
 		boolean isVisible = false;
 		Boolean showResultsActive = (Boolean)modConfig.get(IQEditController.CONFIG_KEY_DATE_DEPENDENT_RESULTS);
-		if(showResultsActive!=null && showResultsActive.booleanValue()) {
-		  Date startDate = (Date)modConfig.get(IQEditController.CONFIG_KEY_RESULTS_START_DATE);
-		  Date endDate = (Date)modConfig.get(IQEditController.CONFIG_KEY_RESULTS_END_DATE);
-		  Date currentDate = new Date();
-		  if(currentDate.after(startDate) && (endDate==null || currentDate.before(endDate))) {
-		  	isVisible = true;
-		  }
+		if(showResultsActive != null && showResultsActive.booleanValue()) {
+			Date startDate = (Date)modConfig.get(IQEditController.CONFIG_KEY_RESULTS_START_DATE);
+			Date endDate = (Date)modConfig.get(IQEditController.CONFIG_KEY_RESULTS_END_DATE);
+			Date currentDate = new Date();
+			if(startDate != null && currentDate.after(startDate) && (endDate == null || currentDate.before(endDate))) {
+				isVisible = true;
+			}
 		} else {
 			isVisible = true;
 		}
 		return isVisible;
 	}
-	
 }
\ No newline at end of file