From 32ad57746b5eba1b051ea46fa55da1502eee66da Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 9 May 2003 23:21:55 +0000 Subject: [PATCH] Avoid undefined backupable mods to be exported --- backup/backup_execute.html | 3 ++- backup/lib.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backup/backup_execute.html b/backup/backup_execute.html index cf0d25e22f..4480547e06 100644 --- a/backup/backup_execute.html +++ b/backup/backup_execute.html @@ -22,7 +22,8 @@ //Check module info $var = "backup_".$modname; if (!isset($$var)) { - $$var = 1; + //Every undefined backup_XXXX isn't exported + $$var = 0; } //Now stores all the mods preferences into an array into preferences $preferences->mods[$modname]->backup = $$var; diff --git a/backup/lib.php b/backup/lib.php index 9e483265b3..1744f61fe7 100644 --- a/backup/lib.php +++ b/backup/lib.php @@ -206,7 +206,7 @@ global $CFG; //Change this if you want !! - $days = 1; + $days = 2; //End change this $seconds = $days * 24 * 60 * 60; $delete_from = time()-$seconds; -- 2.39.5