$info['report access'] is an array, so $access_permissions[] = $info['report access']; makes $access_permissions into an array of arrays instead of a flat array.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drumm created an issue. See original summary.

drumm’s picture

Attached is a patch to correct this.

The PHP warning this causes is:

Warning: Illegal offset type in isset or empty in user_access() (line 833 of /var/www/dev/spam-drupal.dev.devdrupal.org/htdocs/modules/user/user.module).

drumm’s picture

Issue tags: +affects drupal.org
drumm’s picture

Assigned: drumm » Unassigned
drumm’s picture

Issue tags: -affects drupal.org
B_man’s picture

Title: Improve $access_permissions array handling in _mollom_actions_access_callbacks() » Improve $access_permissions array handling in _akismet_actions_access_callbacks()
Project: Mollom » Akismet (Mollom replacement)
Version: 7.x-2.x-dev »
FileSize
1 KB

Attaching an updated diff for akismet.

drumm’s picture

Issue tags: +affects drupal.org
drumm’s picture

Project: Akismet (Mollom replacement) » Akismet
Version: » 7.x-2.x-dev