Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | ctools-notice_undefined_variable_list-2402045-1.patch | 865 bytes | othermachines |
Comments
Comment #1
othermachines CreditAttribution: othermachines commentedComment #2
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 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.
Comment #4
joelpittetThanks @othermachines and @Chris2. That is pretty straight forward and I've committed it to the -dev branch.
Comment #5
joelpittet