Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!153Issue #3527315 deffensive coding
Pipeline #510612 passed with warnings
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment