]> git.mjollnir.org Git - moodle.git/commitdiff
Avoid undefined backupable mods to be exported
authorstronk7 <stronk7>
Fri, 9 May 2003 23:21:55 +0000 (23:21 +0000)
committerstronk7 <stronk7>
Fri, 9 May 2003 23:21:55 +0000 (23:21 +0000)
backup/backup_execute.html
backup/lib.php

index cf0d25e22f31254d75991ec0162be0c9ddf6c738..4480547e067a4bca54d2dcf9915e593a8cd0d3a1 100644 (file)
@@ -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;
index 9e483265b379df5b3b77106009bc0d6f924f2193..1744f61fe7cae4272cd5c9fd0055880af3953d2a 100644 (file)
         global $CFG; 
 
         //Change this if you want !!
-        $days = 1;
+        $days = 2;
         //End change this
         $seconds = $days * 24 * 60 * 60;
         $delete_from = time()-$seconds;