Everything appeared to be working fine until I upgraded the PHP to 8 and I'm now getting the following notification with Error Reporting set to - "System Default"
Warning: Undefined array key "class" in /Applications/.../modules/mod_gmsmenu4/tmpl/default_component.php on line 25
I did reach out to the GiMeSpace developer but haven't had a response and I'm guessing this might be resolved with a code tweak but while I can just about understand the principle of what might be happening by reading the PHP code I'm a bit clueless as to how to write it and wondered if there was anybody who could help?
The code is -
Code: Select all
use Joomla\CMS\Filter\OutputFilter;
use Joomla\CMS\HTML\HTMLHelper;
$attributes = array();
if ($item->level>1)
{
$attributes['class'] .= 'dropdown-item ';
}
else
{
$attributes['class'] .= 'nav-link ';
}
Many thanks in advance