From 1a73a3d84ed6e079438e230d85145403d5a796e9 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Fri, 17 Aug 2007 10:00:00 +0000 Subject: [PATCH] Fixes for some notices because of unitialized vars and elements that may not be present in older backup xml. --- backup/restore_form.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup/restore_form.html b/backup/restore_form.html index 7993c20c2af..bd6598fd28b 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, "");