]> git.mjollnir.org Git - moodle.git/commitdiff
Fixes for some notices because of unitialized vars and elements that may not be prese...
authorjamiesensei <jamiesensei>
Fri, 17 Aug 2007 10:00:00 +0000 (10:00 +0000)
committerjamiesensei <jamiesensei>
Fri, 17 Aug 2007 10:00:00 +0000 (10:00 +0000)
backup/restore_form.html

index 7993c20c2af0971b0457c2eadd6b04839fc05722..bd6598fd28b068579a367c6f27c0481694961dbe 100644 (file)
@@ -270,6 +270,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
         echo "</tr>";
         echo "<tr><td colspan=\"4\"><hr /></td></tr>";
         $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 "</b></td><td colspan=\"2\">";
         //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, "");