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

gagarine’s picture

Assigned: Unassigned » gagarine
Status: Active » Fixed

I 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.