"fixed not transmitted install-type"

This commit is contained in:
Ralf Becker 2009-11-17 12:47:39 +00:00
parent 9a755daa24
commit e9eb83b9e2

View File

@ -101,10 +101,9 @@ class admin_statistics
$content['submit_id'] = $config['statistics_submit_id'] == '***none***' ? '' : $config['statistics_submit_id'];
}
// check if we detected svn or rpm/deb packages --> readonly
if ($content['install_type'])
if ($content['install_type'] && isset($sel_options['install_type'][$content['install_type']]))
{
$readonlys['install_type'] = true;
$preserv['install_type'] = $content['install_type'];
$sel_options['install_type'] = array($content['install_type'] => $sel_options['install_type'][$content['install_type']]);
}
// else default to previous type
elseif($config[self::CONFIG_INSTALL_TYPE])