From 382c50809b4daff4bd18789819b05b7bfa8e0ea0 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Thu, 9 Jun 2005 13:58:41 +0000 Subject: [PATCH] Removed use of assert function for session objects. --- backup/restore_check.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backup/restore_check.html b/backup/restore_check.html index 8ed35d7eb64..6595c9b5e2f 100644 --- a/backup/restore_check.html +++ b/backup/restore_check.html @@ -21,8 +21,9 @@ } // check for session objects - assert_var_set( $info, 'info' ); - assert_var_set( $course_header, 'course_header' ); + if (empty($info)) or empty($course_info)) { + error( 'important information missing from SESSION' ); + } //If the restore object doesn't exist, we are going //to check every variable individually and create it