[0005214] Stock Check Sheet: changed option name to less confusing for shortages...
[fa-stable.git] / admin / backups.php
index 102deb55a187b2f2cb1421893921d10285aac01e..01ef0732acc41e8be64c2903e651c0a87a4eeec9 100644 (file)
@@ -146,7 +146,7 @@ if (get_post('creat')) {
 
 if (get_post('restore')) {
        if ($backup_name) {
-               if (db_import($backup_path, $conn, true, false, check_value('protected')))
+               if (db_import($backup_path, $conn, true, false, check_value('protect')))
                        display_notification(_("Restore backup completed."));
                $SysPrefs->refresh(); // re-read system setup
        } else
@@ -187,7 +187,7 @@ if (get_post('upload'))
 
 }
 //-------------------------------------------------------------------------------
-start_form(false, true);
+start_form(true, true);
 start_outer_table(TABLESTYLE2);
 table_section(1);
 table_section_title(_("Create backup"));