diff options
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/CollaborationResourcesController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/CollaborationResourcesController.php b/core/Controller/CollaborationResourcesController.php index 565e0ba4739..a15904a4c2a 100644 --- a/core/Controller/CollaborationResourcesController.php +++ b/core/Controller/CollaborationResourcesController.php @@ -193,7 +193,7 @@ class CollaborationResourcesController extends OCSController { return [ 'id' => $collection->getId(), 'name' => $collection->getName(), - 'resources' => array_map([$this, 'prepareResources'], $collection->getResources()), + 'resources' => array_values(array_filter(array_map([$this, 'prepareResources'], $collection->getResources()))), ]; } |