if (!isset($CFG->disablescheduledbackups)) { // Defined in config.php
//Execute backup's cron
//Perhaps a long time and memory could help in large sites
- set_time_limit(0);
+ @set_time_limit(0);
ini_set("memory_limit","56M");
if (file_exists("$CFG->dirroot/backup/backup_scheduled.php") and
file_exists("$CFG->dirroot/backup/backuplib.php") and
/// Turn off time limits, sometimes upgrades can be slow.
- set_time_limit(0);
+ @set_time_limit(0);
/// Check if the main tables have been installed yet or not.
print_heading($module->name);
$updated_modules = true;
$db->debug = true;
- set_time_limit(0); // To allow slow databases to complete the long SQL
+ @set_time_limit(0); // To allow slow databases to complete the long SQL
if (modify_database("$fullmod/db/$CFG->dbtype.sql")) {
$db->debug = false;
if ($module->id = insert_record("modules", $module)) {
/// Turn off time limits, sometimes upgrades can be slow.
- set_time_limit(0);
+ @set_time_limit(0);
/// Print header
print_heading($block->name);
$updated_blocks = true;
$db->debug = true;
- set_time_limit(0); // To allow slow databases to complete the long SQL
+ @set_time_limit(0); // To allow slow databases to complete the long SQL
if (!is_dir("$fullblock/db/") || modify_database("$fullblock/db/$CFG->dbtype.sql")) {
$db->debug = false;
if ($block->id = insert_record('blocks', $block)) {