Config may not be populated. Need to check config for value before foreach:

Invalid argument supplied for foreach() in token_var_token_info() (line 19 of modules/contrib/token_var/token_var.module)

Comments

brooke_heaton created an issue. See original summary.

brooke_heaton’s picture

Add isset check on $config to prevent invalid argument.

brooke_heaton’s picture

Title: Invalid argument supplied for foreach() in token_var_token_info() (line 19 » Invalid argument supplied for foreach() in token_var_token_info()
Assigned: Unassigned » brooke_heaton
brooke_heaton’s picture

Status: Active » Needs review

piyuesh23’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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