fix duplicate db-updates due to new db-version stuff
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user