diff --git a/src/main/java/org/olat/course/nodes/st/STCourseNodeRunController.java b/src/main/java/org/olat/course/nodes/st/STCourseNodeRunController.java index 1d8cdb67b42e200833c60833a18e975f714bcc02..9f3777f29c7ef77ab14b33e11bccc88dd248d018 100644 --- a/src/main/java/org/olat/course/nodes/st/STCourseNodeRunController.java +++ b/src/main/java/org/olat/course/nodes/st/STCourseNodeRunController.java @@ -97,7 +97,7 @@ public class STCourseNodeRunController extends BasicController { myContent = createVelocityContainer("run"); myContent.setDomReplacementWrapperRequired(false); // we provide our own DOM replacement ID - if (se != null){ + if (se != null && (stCourseNode.hasScoreConfigured() || stCourseNode.hasPassedConfigured())) { HighScoreRunController highScoreCtr = new HighScoreRunController(ureq, wControl, userCourseEnv, stCourseNode); if (highScoreCtr.isViewHighscore()) { Component highScoreComponent = highScoreCtr.getInitialComponent(); @@ -175,10 +175,12 @@ public class STCourseNodeRunController extends BasicController { myContent.contextPut("hasScore", new Boolean(stCourseNode.hasScoreConfigured())); myContent.contextPut("hasPassed", new Boolean(stCourseNode.hasPassedConfigured())); - CourseConfig cc = userCourseEnv.getCourseEnvironment().getCourseConfig(); - if((cc.isEfficencyStatementEnabled() || cc.isCertificateEnabled()) - && userCourseEnv.hasEfficiencyStatementOrCertificate(false)) { - certificationLink = LinkFactory.createButton("certification", myContent, this); + if(stCourseNode.hasScoreConfigured() || stCourseNode.hasPassedConfigured()) { + CourseConfig cc = userCourseEnv.getCourseEnvironment().getCourseConfig(); + if((cc.isEfficencyStatementEnabled() || cc.isCertificateEnabled()) + && userCourseEnv.hasEfficiencyStatementOrCertificate(false)) { + certificationLink = LinkFactory.createButton("certification", myContent, this); + } } }