This code throws notices.

Notice: Undefined variable: list in ctools_context_user_convert_list() (line 160 of .. sites/all/modules/contrib/ctools/plugins/contexts/user.inc).

Looks like $list should be initialized as an empty array first.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

othermachines’s picture

Version: 7.x-1.5 » 7.x-1.x-dev
Status: Active » Needs review
FileSize
865 bytes
Chris Matthews’s picture

The patch to user.inc applied cleanly to the latest ctools 7.x-1.x-dev, and if still applicable needs to be reviewed and tested by the community.

Checking patch plugins/contexts/user.inc...
Hunk #1 succeeded at 152 (offset 1 line).
Applied patch plugins/contexts/user.inc cleanly.

joelpittet’s picture

Status: Needs review » Fixed

Thanks @othermachines and @Chris2. That is pretty straight forward and I've committed it to the -dev branch.

joelpittet’s picture

Status: Fixed » Closed (fixed)

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