mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
dont throw errors when apps dont have types configured
This commit is contained in:
@@ -114,7 +114,11 @@ class OC_App{
|
||||
self::$appTypes=OC_Appconfig::getValues(false,'types');
|
||||
}
|
||||
|
||||
return explode(',',self::$appTypes[$app]);
|
||||
if(isset(self::$appTypes[$app])){
|
||||
return explode(',',self::$appTypes[$app]);
|
||||
}else{
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user