Skip to content

Commit 844ef96

Browse files
committed
fix(form): PHP warning
1 parent 85b6a68 commit 844ef96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

front/formaccesstype.form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
];
7171

7272
$restrictions = $_POST['restrictions'] ?? null;
73-
if (!is_null($_POST['restrictions'])) {
73+
if (!is_null($restrictions)) {
7474
$input['users'] = AbstractRightsDropdown::getPostedIds($restrictions, User::class);
7575
$input['groups'] = AbstractRightsDropdown::getPostedIds($restrictions, Group::class);
7676
$input['profiles'] = AbstractRightsDropdown::getPostedIds($restrictions, Profile::class);

0 commit comments

Comments
 (0)