From 305a18c6b06cdf3a25430941577ccc0a3fec0fb9 Mon Sep 17 00:00:00 2001 From: fusionate Date: Fri, 9 Jun 2023 19:40:20 +0000 Subject: [PATCH] Access Controls: Update for PHP 8.1 --- app/access_controls/access_controls.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/access_controls/access_controls.php b/app/access_controls/access_controls.php index 258ae61aab..9915200b8b 100644 --- a/app/access_controls/access_controls.php +++ b/app/access_controls/access_controls.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2018 - 2020 + Portions created by the Initial Developer are Copyright (C) 2018 - 2023 the Initial Developer. All Rights Reserved. Contributor(s): @@ -70,8 +70,9 @@ } //prepare the array - foreach($access_controls as $row) { - $array['access_controls'][$x]['checked'] = $row['checked']; + $x = 0; + foreach ($access_controls as $row) { + $array['access_controls'][$x]['checked'] = $row['checked'] ?? null; $array['access_controls'][$x]['access_control_uuid'] = $row['access_control_uuid']; $x++; }