summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2012-01-08 18:01:33 +0100
committerRobin Appelman <icewind1991@gmail.com>2012-01-08 18:01:33 +0100
commitccc43f0ea02a048583fff715f00cda0280124586 (patch)
tree31d3c5643646a8f2cabefddf6f5a24264667b3c3 /lib/base.php
parent799a7db638a71af91329c1781c482eacbd038ace (diff)
parent37f5a8cdb4d2486982117c5d5984a253c2192e0b (diff)
downloadnextcloud-server-ccc43f0ea02a048583fff715f00cda0280124586.tar.gz
nextcloud-server-ccc43f0ea02a048583fff715f00cda0280124586.zip
merge master into filesystem
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/base.php b/lib/base.php
index 83b14f2b970..9ac6b6751a2 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -152,14 +152,16 @@ class OC{
}
}
- $installedVersion=OC_Config::getValue('version','0.0.0');
- $currentVersion=implode('.',OC_Util::getVersion());
- if (version_compare($currentVersion, $installedVersion, '>')) {
- OC_DB::updateDbFromStructure('../db_structure.xml');
- OC_Config::setValue('version',implode('.',OC_Util::getVersion()));
- }
+ if(OC_Config::getValue('installed', false)){
+ $installedVersion=OC_Config::getValue('version','0.0.0');
+ $currentVersion=implode('.',OC_Util::getVersion());
+ if (version_compare($currentVersion, $installedVersion, '>')) {
+ OC_DB::updateDbFromStructure('../db_structure.xml');
+ OC_Config::setValue('version',implode('.',OC_Util::getVersion()));
+ }
- OC_App::updateApps();
+ OC_App::updateApps();
+ }
ini_set('session.cookie_httponly','1;');
session_start();