summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-05-19 02:00:46 +0200
committerRobin Appelman <icewind@owncloud.com>2012-05-19 02:00:46 +0200
commita2cc772aa549a4f3fef2d614af8e13e7d43aab87 (patch)
tree637eaad8f389ef11dff5a7b8688aa2ea5c6a6736 /lib
parentb096fd9ed8811c92177864f76e91ae939d42ead4 (diff)
downloadnextcloud-server-a2cc772aa549a4f3fef2d614af8e13e7d43aab87.tar.gz
nextcloud-server-a2cc772aa549a4f3fef2d614af8e13e7d43aab87.zip
dont run update scripts for apps that arent enabled
Diffstat (limited to 'lib')
-rw-r--r--lib/app.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/app.php b/lib/app.php
index 7cb18a7ab00..c4cdd216838 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -533,6 +533,9 @@ class OC_App{
if(file_exists(OC::$APPSROOT.'/apps/'.$appid.'/appinfo/database.xml')){
OC_DB::updateDbFromStructure(OC::$APPSROOT.'/apps/'.$appid.'/appinfo/database.xml');
}
+ if(!self::isEnabled($appid)){
+ return;
+ }
if(file_exists(OC::$APPSROOT.'/apps/'.$appid.'/appinfo/update.php')){
include OC::$APPSROOT.'/apps/'.$appid.'/appinfo/update.php';
}