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.

Comments

geoffreyr created an issue. See original summary.

geoffreyr’s picture

StatusFileSize
new711 bytes

Re-up to use older array syntax.

vacilando’s picture

Same problem!

codebymikey’s picture

Status: Needs review » Reviewed & tested by the community

LGTM

codebymikey’s picture

Assigned: Unassigned » codebymikey
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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