Access Controls: Update for PHP 8.1
This commit is contained in:
parent
d92961d769
commit
305a18c6b0
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
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.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|
@ -70,8 +70,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//prepare the array
|
//prepare the array
|
||||||
foreach($access_controls as $row) {
|
$x = 0;
|
||||||
$array['access_controls'][$x]['checked'] = $row['checked'];
|
foreach ($access_controls as $row) {
|
||||||
|
$array['access_controls'][$x]['checked'] = $row['checked'] ?? null;
|
||||||
$array['access_controls'][$x]['access_control_uuid'] = $row['access_control_uuid'];
|
$array['access_controls'][$x]['access_control_uuid'] = $row['access_control_uuid'];
|
||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue