Was getting this error on our production environment:
Error: [] operator not supported for strings in expire_admin_preprocess_menu_local_tasks() (line 101 of /path/to/docroot/sites/all/modules/contrib/expire_admin/expire_admin.module).
Have attached a patch that forces $vars['primary'] to an array if it's empty, to ensure that we don't get any weird type clashes.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | expire_admin-empty_primary_1.patch | 711 bytes | geoffreyr |
Comments
Comment #2
geoffreyr commentedRe-up to use older array syntax.
Comment #3
vacilando commentedSame problem!
Comment #4
codebymikey commentedLGTM
Comment #6
codebymikey commented