diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-05-19 02:00:46 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-05-19 02:00:46 +0200 |
commit | a2cc772aa549a4f3fef2d614af8e13e7d43aab87 (patch) | |
tree | 637eaad8f389ef11dff5a7b8688aa2ea5c6a6736 /lib | |
parent | b096fd9ed8811c92177864f76e91ae939d42ead4 (diff) | |
download | nextcloud-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.php | 3 |
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'; } |