Skip to content

Commit

Permalink
Update cookiegroup.php
Browse files Browse the repository at this point in the history
Deprecated-Meldung wenn keine Cookies ausgewählt sind vermeiden
  • Loading branch information
aeberhard committed Mar 13, 2023
1 parent 3a0bd51 commit 86e8934
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pages/cookiegroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@
} else {
if ([] !== $cookies) {
$checkboxes = [];
$checkedBoxes = array_filter(explode('|', $form->getSql()->getValue('cookie')));
if (null !== $form->getSql()->getValue('cookie')) {
$checkedBoxes = array_filter(explode('|', $form->getSql()->getValue('cookie')));
} else {
$checkedBoxes = [];
}
foreach ($cookies as $v) {
$checked = (in_array((string) $v['uid'], $checkedBoxes, true)) ? '|1|' : '';
$checkboxes[] = [$checked, $v['uid']];
Expand Down

0 comments on commit 86e8934

Please sign in to comment.