diff --git a/backup/restore_check.html b/backup/restore_check.html
index 6595c9b5e2f..50d5160ed93 100644
--- a/backup/restore_check.html
+++ b/backup/restore_check.html
@@ -21,7 +21,7 @@
}
// check for session objects
- if (empty($info)) or empty($course_info)) {
+ if (empty($info) or empty($course_header)) {
error( 'important information missing from SESSION' );
}