Browse Source

[UPDATE] clear code

experimental
Georgi Hristov 2 years ago
parent
commit
b4c2f2ddd6
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      modules/Utils/RecordBrowser/Access.php

+ 1
- 2
modules/Utils/RecordBrowser/Access.php View File

@@ -254,8 +254,7 @@ class Utils_RecordBrowser_Access
$full_field_access = array_fill_keys(array_column($fields, 'id'), true);
$blocked_field_access = array();
if ($blocked_fields) $blocked_field_access = array_fill_keys($blocked_fields, false);
$blocked_field_access = $blocked_fields? array_fill_keys($blocked_fields, false):[];
return array_merge($full_field_access, $blocked_field_access);
}


Loading…
Cancel
Save