summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-02-17 15:36:16 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-02-17 16:05:23 +0100
commite4077672e15809d04df4fd2af3df998dfed04292 (patch)
tree363626da1ed8b7905852d47d8cc47e95d6243860 /lib/private/legacy
parent2e15c0d871860df4b9be55a7c67e29f76aeb8a7c (diff)
downloadnextcloud-server-e4077672e15809d04df4fd2af3df998dfed04292.tar.gz
nextcloud-server-e4077672e15809d04df4fd2af3df998dfed04292.zip
Use empty array as group list in OC_App::enable
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/app.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 6ce18bc7911..61f639953ec 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -390,8 +390,8 @@ class OC_App {
*
* This function set an app as enabled in appconfig.
*/
- public function enable($appId,
- $groups = null) {
+ public function enable(string $appId,
+ array $groups = []) {
self::$enabledAppsCache = []; // flush
// Check if app is already downloaded
@@ -405,7 +405,7 @@ class OC_App {
$installer->installApp($appId);
$appManager = \OC::$server->getAppManager();
- if (!is_null($groups)) {
+ if ($groups !== []) {
$groupManager = \OC::$server->getGroupManager();
$groupsList = [];
foreach ($groups as $group) {