Permalink
Browse files

MDL-19163 restore - avoid some notices.

  • Loading branch information...
1 parent 9bc66d2 commit 65f3fe2b8c27e63280f39a74eaf3ee2cd22911ab stronk7 committed May 19, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 backup/restore_check.html
@@ -19,8 +19,8 @@
if ($form1 = data_submitted()) {
$currentcourseshortname = $course_header->course_shortname; //"store_ShortName";
- $course_header->course_shortname = stripslashes_safe($form1->shortname); //"update_ShortName";
- $course_header->course_fullname = stripslashes_safe($form1->fullname); //"update_FullName";
+ $course_header->course_shortname = !empty($form1->shortname) ? stripslashes_safe($form1->shortname) : ''; //"update_ShortName";
+ $course_header->course_fullname = !empty($form1->fullname) ? stripslashes_safe($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

0 comments on commit 65f3fe2

Please sign in to comment.