Skip to content

Commit

Permalink
fix(form): PHP warning
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Aug 2, 2022
1 parent 85b6a68 commit 844ef96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/formaccesstype.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
];

$restrictions = $_POST['restrictions'] ?? null;
if (!is_null($_POST['restrictions'])) {
if (!is_null($restrictions)) {
$input['users'] = AbstractRightsDropdown::getPostedIds($restrictions, User::class);
$input['groups'] = AbstractRightsDropdown::getPostedIds($restrictions, Group::class);
$input['profiles'] = AbstractRightsDropdown::getPostedIds($restrictions, Profile::class);
Expand Down

0 comments on commit 844ef96

Please sign in to comment.