Commit 92ffdc2d authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1785924: display viewacl form - avoid checking values for the empty row"

parents 3b8a5cf8 831ca4f9
......@@ -55,7 +55,7 @@ function pieform_element_viewacl(Pieform $form, $element) {
$lockedpreset = null;
if ($value) {
foreach ($value as $item) {
if (is_array($item)) {
if (is_array($item) && !empty($item['type'])) {
if ($item['type'] == 'public') {
$item['publicallowed'] = (int)$public;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment