Skip to content

Commit

Permalink
MDL-19163 restore - avoid some notices. Merged from 19_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed May 19, 2009
1 parent 66f8c14 commit 2a8435c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup/restore_check.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

if ($form1 = data_submitted()) {
$currentcourseshortname = $course_header->course_shortname; //"store_ShortName";
$course_header->course_shortname = $form1->shortname; //"update_ShortName";
$course_header->course_fullname = $form1->fullname; //"update_FullName";
$course_header->course_shortname = !empty($form1->shortname) ? $form1->shortname : ''; //"update_ShortName";
$course_header->course_fullname = !empty($form1->fullname) ? $form1->fullname : ''; //"update_FullName";
/// Roll dates only if the backup course has a start date
/// (some formats like main page, social..., haven't it and rolling dates
/// from 0 produces crazy dates. MDL-10125 and we have passed some custom startyear/month/day. MDL-12922
Expand Down

0 comments on commit 2a8435c

Please sign in to comment.