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

Commit 00cf0f0

Browse files
author
Dominik Frantisek Bucik
committed
fix: 🐛 fix not checking for key existence in aups
* bug caused passing null as argument to json_decode(...) function when the voShortName or aup key has not been found in the defined AUPs (defined for vo or in entityless attribute)
1 parent 94c9243 commit 00cf0f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Auth/Process/ForceAup.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ private function fillAupsToBeApproved($requestedAups, $aups, $userApprovedAups)
266266
{
267267
$aupsToBeApproved = [];
268268
foreach ($requestedAups as $requestedAup) {
269+
$aupsInJson = $aups[$requestedAup];
270+
if (empty($aupsInJson)) {
271+
continue;
272+
}
269273
$decodedAups = json_decode($aups[$requestedAup]);
270274
$latestAup = $this->getLatestAup($decodedAups);
271275

0 commit comments

Comments
 (0)