fix duplicate db-updates due to new db-version stuff

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-03-15 17:14:41 +01:00
parent 104383d31e
commit a849f35469
2 changed files with 6 additions and 6 deletions

View File

@@ -85,7 +85,7 @@ if ($page == 'overview') {
if (!$successful_update) {
$current_version = Settings::Get('panel.version');
$current_db_version = Settings::Get('panel.dbversion');
$current_db_version = Settings::Get('panel.db_version');
if (empty($current_db_version)) {
$current_db_version = "0";
}

View File

@@ -3145,7 +3145,7 @@ if (isFroxlorVersion('0.9.35-dev7')) {
updateToVersion('0.9.35-rc1');
}
if (isFroxlorVersion('0.9.35-rc1')) {
if (isFroxlorVersion('0.9.35-rc1') && isDatabaseVersion('0')) {
Settings::AddNew("panel.db_version", "201603070");