Skip to content
Snippets Groups Projects

Issue #3513025: Warning: Undefined array key "display_empty".

2 files
+ 25
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -443,7 +443,7 @@ class MenuBlock extends SystemMenuBlock {
*/
public function blockAccess(AccountInterface $account) {
$build = $this->build();
if (empty($build['#items']) && !$this->configuration['display_empty']) {
if (empty($build['#items']) && !($this->configuration['display_empty'] ?? FALSE)) {
return AccessResult::forbidden();
}
return parent::blockAccess($account);
Loading