I'm testing organic groups (from og-4.7-1.x-dev.tar.gz) under drupal 4.7.x as an anonymous user and have gotten the following errors:
* warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/testbed/modules/og/og.module on line 70.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /Applications/MAMP/htdocs/testbed/modules/og/og.module on line 904.
* warning: in_array() [function.in-array]: Wrong datatype for second argument in /Applications/MAMP/htdocs/testbed/modules/og/og.module on line 904.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /Applications/MAMP/htdocs/testbed/modules/og/og.module on line 904.
* warning: in_array() [function.in-array]: Wrong datatype for second argument in /Applications/MAMP/htdocs/testbed/modules/og/og.module on line 904.
This happens more than once, and I fear I haven't hit them all yet. These all seem to stem from the fact that I'm looking at this as an anonymous user and things like array_keys($user->og_groups) are not going to work. Is there a patch for this for og? I haven't seen anything in a longish perusal of patches/bug reports since the last release of the organic groups module.