]> source.dussan.org Git - nextcloud-server.git/commitdiff
dont run update scripts for apps that arent enabled
authorRobin Appelman <icewind@owncloud.com>
Sat, 19 May 2012 00:00:46 +0000 (02:00 +0200)
committerRobin Appelman <icewind@owncloud.com>
Sat, 19 May 2012 00:00:46 +0000 (02:00 +0200)
lib/app.php

index 7cb18a7ab0088a4ff00a76a18e1f94422a636d61..c4cdd2168382b6d0d54ab18c8eab0b21150c7a8e 100644 (file)
@@ -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';
                }