Commit cad39ffe authored by Peter Wolanin's avatar Peter Wolanin Committed by David Suissa
Browse files

Issue #3527315 by pwolanin: Use defensive coding to prevent warning 'Trying to...

Issue #3527315 by pwolanin: Use defensive coding to prevent warning 'Trying to access array offset on value of type null' when configuration is not updated correctly.
parent 54e157e4
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ function admin_toolbar_toolbar_alter(&$items) {
  }
  // Add the hoverIntent behavior library if enabled.
  $hoverintent_behavior = $admin_toolbar_config->get('hoverintent_behavior');
  if ($hoverintent_behavior['enabled'] === TRUE) {
  if (!empty($hoverintent_behavior['enabled'])) {
    // Use the hoverIntent plugin library.
    $items['administration']['#attached']['library'][] = 'admin_toolbar/toolbar.tree.hoverintent';
    // Add the configured hoverIntent settings values to the JS of the toolbar.