From: Robin Appelman Date: Sat, 19 May 2012 00:00:46 +0000 (+0200) Subject: dont run update scripts for apps that arent enabled X-Git-Tag: v4.0.0~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a2cc772aa549a4f3fef2d614af8e13e7d43aab87;p=nextcloud-server.git dont run update scripts for apps that arent enabled --- 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'; }