Check if app is enabled before exporting its data
This commit is contained in:
parent
4094f6f8e0
commit
709b0a1ddc
|
@ -406,6 +406,8 @@ class OC_Migrate{
|
|||
|
||||
// Foreach provider
|
||||
foreach( self::$providers as $provider ){
|
||||
// Check if the app is enabled
|
||||
if( OC_App::isEnabled( $provider->getID() ) ){
|
||||
$success = true;
|
||||
// Does this app use the database?
|
||||
if( file_exists( OC::$SERVERROOT.'/apps/'.$provider->getID().'/appinfo/database.xml' ) ){
|
||||
|
@ -435,7 +437,7 @@ class OC_Migrate{
|
|||
// Now add some app info the the return array
|
||||
$appinfo = OC_App::getAppInfo( $provider->getID() );
|
||||
$return['apps'][$provider->getID()]['version'] = OC_App::getAppVersion($provider->getID());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return $return;
|
||||
|
|
Loading…
Reference in New Issue