Skip to content

Commit

Permalink
Merge pull request #556 from themeum/harun
Browse files Browse the repository at this point in the history
Fix - assignment fatal error for string value
  • Loading branch information
shewa12 authored Sep 14, 2023
2 parents e9e50d0 + 512a68a commit 2d3a5d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/single/assignment/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function tutor_assignment_convert_seconds( $seconds ) {
}
}

$time_duration_in_sec = $time_duration_in_sec * $time_duration['value'];
$time_duration_in_sec = $time_duration_in_sec * (int) $time_duration['value'];
$remaining_time = $assignment_created_time + $time_duration_in_sec;
$now = time();
$remaining = $now - $remaining_time;
Expand Down

0 comments on commit 2d3a5d3

Please sign in to comment.