Project

General

Profile

« Previous | Next » 

Revision d3d9b707

Added by Renato Botelho almost 8 years ago

Do not use reference to avoid losing data

View differences:

src/etc/inc/config.lib.inc
456 456
	if (!is_array($config['system']['already_run_config_upgrade'])) {
457 457
		$config['system']['already_run_config_upgrade'] = array();
458 458
	}
459
	$already_run =& $config['system']['already_run_config_upgrade'];
459
	$already_run = $config['system']['already_run_config_upgrade'];
460 460

  
461 461
	/* Loop and run upgrade_VER_to_VER() until we're at current version */
462 462
	while ($config['version'] < $g['latest_config']) {
......
472 472
			}
473 473
			if (isset($already_run[$migration_function])) {
474 474
				/* Already executed, skip now */
475
				unset($already_run[$migration_function]);
475
				unset($config['system']
476
				    ['already_run_config_upgrade']
477
				    [$migration_function]);
476 478
			} else {
477 479
				$migration_function();
478 480
			}

Also available in: Unified diff