Avoid undefined backupable mods to be exported

This commit is contained in:
stronk7
2003-05-09 23:21:55 +00:00
parent 54157606e0
commit 32ad57746b
2 changed files with 3 additions and 2 deletions
+2 -1
View 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;
+1 -1
View File
@@ -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;