On some of the links that are passed through the _me_check_path() function may be missing the #href array element for whatever reason. As a result you'll get the following error:
Notice: Undefined index: #href in _me_check_path() (line 114 of C:\webs\cv.aar\htdocs\sites\all\modules\contrib\me\me.module).
This is because the "if" statement assumes the array index exist in its' usage on line 114.
Suggested fix:
change:
if (me_variable_get('me_rewrite_link') && !_me_handle_path($link['#href'])) {
to:
if (isset($link['#href']) && me_variable_get('me_rewrite_link') && !_me_handle_path($link['#href'])) {
I have attached a fix in 0001-error-ahref-array-element.patch
Comment | File | Size | Author |
---|---|---|---|
0001-error-ahref-array-element.patch | 992 bytes | cravecode |
Comments
Comment #1
nohup CreditAttribution: nohup commentedPatch committed, thanks.
Comment #2.0
(not verified) CreditAttribution: commentedCorrected my crappy spelling and grammar.