From 844ef96c4037eeea549a1eaac2c79ee73eb811b4 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 2 Aug 2022 11:17:11 +0200 Subject: [PATCH] fix(form): PHP warning --- front/formaccesstype.form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/formaccesstype.form.php b/front/formaccesstype.form.php index d229069da..f7958b583 100644 --- a/front/formaccesstype.form.php +++ b/front/formaccesstype.form.php @@ -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);