syscp-trunk is f*cked

This commit is contained in:
Michael Kaufmann (d00p)
2010-02-23 13:33:51 +00:00
parent fea80269ed
commit dd0aa8e10c

View File

@@ -27,15 +27,18 @@ if($page == 'overview')
* has any version/dbversion in the database (don't know why) * has any version/dbversion in the database (don't know why)
* so we have to set them both to run a correct upgrade * so we have to set them both to run a correct upgrade
*/ */
if (!isset($settings['panel']['version']) if (!isFroxlor()) {
|| $settings['panel']['version'] == '' if (!isset($settings['panel']['version'])
) { || $settings['panel']['version'] == ''
$settings['panel']['version'] = '1.4.2.1'; ) {
} $settings['panel']['version'] = '1.4.2.1';
if (!isset($settings['system']['dbversion']) $db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('panel','version','".$settings['panel']['version']."')");
|| $settings['system']['dbversion'] == '' }
) { if (!isset($settings['system']['dbversion'])
$settings['system']['dbversion'] = 2; || $settings['system']['dbversion'] == ''
) {
$settings['system']['dbversion'] = 2;
}
} }
if(hasUpdates($version)) if(hasUpdates($version))