Skip to content

Commit

Permalink
Fix - assignment fatal error for string value
Browse files Browse the repository at this point in the history
  • Loading branch information
harunollyo committed Sep 14, 2023
1 parent 557dcc6 commit 512a68a
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 512a68a

Please sign in to comment.