Hello. An error keeps popping up for my users, not on my account though (user #1).

warning: Invalid argument supplied for foreach() in /../sites/all/modules/forum_access-6.x-1.x-dev/forum_access/forum_access.module on line 285.

I originally had 6.x-1.0 but thought upgrading to the dev version might fix this. What could this be caused by?

Comments

salvis’s picture

Category: support » bug

Hmm, I'm not sure why this happens for you, but try replacing the line 284

  if (!forum_access_access($variables['tid'], 'create')) {

with

  if (!forum_access_access($variables['tid'], 'create') && !empty($variables['links'])) {
Fayna’s picture

Yay! That worked. :-) Thanks so much!!

salvis’s picture

Title: Invalid argument supplied error » Invalid argument supplied supplied for foreach(), line 285
Status: Active » Fixed

Great, thanks for letting us know.

Committed to the -dev version.

Status: Fixed » Closed (fixed)

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