mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
fix for MDL-11063 - thanks to Wen for the patch.
This commit is contained in:
parent
948acd80e2
commit
8c74e3f676
2 changed files with 12 additions and 4 deletions
|
@ -87,10 +87,17 @@ if ($action == 'delchoice') {
|
|||
|
||||
/// Print the form
|
||||
|
||||
if ($choice->timeopen > time() ) {
|
||||
print_simple_box(get_string("notopenyet", "choice", userdate($choice->timeopen)), "center");
|
||||
print_footer($course);
|
||||
exit;
|
||||
$timenow = time();
|
||||
if ($choice->timeclose !=0) {
|
||||
if ($choice->timeopen > $timenow ) {
|
||||
print_simple_box(get_string("notopenyet", "choice", userdate($choice->timeopen)), "center");
|
||||
print_footer($course);
|
||||
exit;
|
||||
} else if ($timenow > $choice->timeclose) {
|
||||
print_simple_box(get_string("expired", "choice", userdate($choice->timeclose)), "center");
|
||||
print_footer($course);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
if ( (!$current or $choice->allowupdate) and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue