Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
in 7.x-1.x-dev 2012-Jun-20
the code on line 79 is
$attrs = $element['#original_link']['options']['attributes'] ?: array();
and also the same operator exists in line 129
$attrs = $vars[$menu][$key]['attributes'] ?: array();
and I am getting this error
Error: syntax error, unexpected ':' in sites/all/modules/special_menu_items/special_menu_items.module, line 79
Comments
Comment #1
gagarine CreditAttribution: gagarine commentedI just quickly push a fix.. but I didn't test it (I'm not on my dev machine). Hop it's fine. I will try it tomorrow.
Note: this append because you use PHP 5.2 and I can only encourage you to update, this version is 6 years old! I will still support 5.2 and correct bug, but I'm testing only on PHP 5.3 and 5.4.