From: jamiesensei Date: Fri, 17 Aug 2007 10:00:00 +0000 (+0000) Subject: Fixes for some notices because of unitialized vars and elements that may not be prese... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1a73a3d84ed6e079438e230d85145403d5a796e9;p=moodle.git Fixes for some notices because of unitialized vars and elements that may not be present in older backup xml. --- diff --git a/backup/restore_form.html b/backup/restore_form.html index 7993c20c2a..bd6598fd28 100644 --- a/backup/restore_form.html +++ b/backup/restore_form.html @@ -270,6 +270,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) { echo ""; echo "
"; $currentrow = 0; + $nonrestmod = ''; foreach ($allmods as $mod) { $modname = $mod->name; $modrestore = $modname."_restore_mods"; @@ -442,7 +443,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) { echo get_string ("sitefiles").":"; echo ""; //If site files are in the backup file, show menu, else fixed to no - if ($info->backup_site_files == "true") { + if (isset($info->backup_site_files) && $info->backup_site_files == "true") { $site_file_options[0] = get_string("no"); $site_file_options[1] = get_string("yes"); choose_from_menu($site_file_options, "restore_site_files", $restore_site_files, "");