From 75a8c1283807b161366fbce26f36574fe9f9bc0c Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Thu, 12 Oct 2006 02:13:58 +0000 Subject: [PATCH] merged, getting rid of warnings --- backup/restorelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/restorelib.php b/backup/restorelib.php index 9fbb8d2ec2..d67b2de579 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -365,7 +365,7 @@ } else { $tab[$elem][1] = get_string("included")." ".get_string("withoutuserdata"); } - if (is_array($mod->instances) && count($mod->instances)) { + if (isset($mod->instances) && is_array($mod->instances) && count($mod->instances)) { foreach ($mod->instances as $instance) { if ($instance->backup) { $elem++; -- 2.39.5