From a2cc772aa549a4f3fef2d614af8e13e7d43aab87 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 19 May 2012 02:00:46 +0200 Subject: [PATCH] dont run update scripts for apps that arent enabled --- lib/app.php | 3 +++ 1 file changed, 3 insertions(+) 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'; } -- 2.39.5