From 2a8435c4ced0c2c6ba6e6eb48ff9c8762d1494e8 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 19 May 2009 18:50:24 +0000 Subject: [PATCH] MDL-19163 restore - avoid some notices. Merged from 19_STABLE --- backup/restore_check.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/restore_check.html b/backup/restore_check.html index 722e85e1ec..63b19179a1 100644 --- a/backup/restore_check.html +++ b/backup/restore_check.html @@ -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 -- 2.39.5