Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Take out more notices in restore process. Undefined variables, mainly.

  • Loading branch information...
commit e3713e1a3125b47537e4c1be708373ae61bb6604 1 parent 0e232d1
stronk7 authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 backup/restore_check.html
View
6 backup/restore_check.html
@@ -9,7 +9,9 @@
if ($SESSION) {
$info = $SESSION->info;
$course_header = $SESSION->course_header;
- $restore = $SESSION->restore;
+ if (isset($SESSION->restore)) {
+ $restore = $SESSION->restore;
+ }
}
//If restore session info exists, but we are posting parameters
@@ -29,7 +31,7 @@
//If the restore object doesn't exist, we are going
//to check every variable individually and create it
- if (!$restore) {
+ if (!isset($restore)) {
//Check that we have all we need
//backup_unique_code
require_variable($backup_unique_code);
Please sign in to comment.
Something went wrong with that request. Please try again.