summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 9531f7ed74f..ab7cb2990ed 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -156,7 +156,11 @@ class OC{
$installedVersion=OC_Config::getValue('version','0.0.0');
$currentVersion=implode('.',OC_Util::getVersion());
if (version_compare($currentVersion, $installedVersion, '>')) {
- OC_DB::updateDbFromStructure(OC::$SERVERROOT.'/db_structure.xml');
+ $result=OC_DB::updateDbFromStructure(OC::$SERVERROOT.'/db_structure.xml');
+ if(!$result){
+ echo 'Error while upgrading the database';
+ die();
+ }
OC_Config::setValue('version',implode('.',OC_Util::getVersion()));
}