Skip to content

Commit

Permalink
Fixes error when showing example setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrodriguez-dis committed Aug 11, 2018
1 parent f26b647 commit ebce736
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vpl.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1796,13 +1796,13 @@ public function print_submission_restriction() {
} else {
$this->print_restriction( 'worktype', $values [$worktype] );
}
$stryes = get_string( 'yes' );
$strno = get_string( 'no' );
if ($instance->example) {
$this->print_restriction( 'isexample', $stryes );
$this->print_restriction( 'isexample', $stryes);
}
$grader = $this->has_capability( VPL_GRADE_CAPABILITY );
if ($grader) {
$stryes = get_string( 'yes' );
$strno = get_string( 'no' );
require_once($CFG->libdir . '/gradelib.php');
if ($gie = $this->get_grade_info()) {
if ($gie->scaleid == 0) {
Expand Down

0 comments on commit ebce736

Please sign in to comment.