Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit eff5720

Browse files
Merge pull request #116 from vyskocilpavel/facility_capabilities_fix
Bugfixes in getFacilityCapabilities
2 parents 0480580 + c5ca6c2 commit eff5720

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
1515
#### Fixed
1616
- Fixed the width of showed tagged idps in case the count of idps is equal to (x * 3) + 1
1717
- Using try{}catch{} to avoid to PerunException in PerunEntitlement.php
18+
- Return [] instead of null in getFacilityCapability via RPC, if facilityCapability is not set
1819

1920
## [v3.8.0]
2021
#### Changed

lib/AdapterRpc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,10 @@ public function getFacilityCapabilities($entityId)
577577
'attributeName' => 'urn:perun:facility:attribute-def:def:capabilities'
578578
])['value'];
579579

580+
if (empty($facilityCapabilities)) {
581+
$facilityCapabilities = [];
582+
}
583+
580584
return $facilityCapabilities;
581585
}
582586

0 commit comments

Comments
 (0)