Skip to content

Commit f0461a8

Browse files
authored
Fix PHP Warning: Trying to access array offset on null (#78)
1 parent 1908048 commit f0461a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/RegProcess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function main(Request $request): Response
166166
count(json_decode($request->request->get('clientext'), true)) > 0
167167
) {
168168
$extensions = json_decode($request->request->get('clientext'), true);
169-
if ($extensions['credProps']['rk'] === true) {
169+
if (isset($extensions['credProps']['rk']) && $extensions['credProps']['rk'] === true) {
170170
$isResidentKey = 1;
171171
}
172172
}

0 commit comments

Comments
 (0)