Commit cc9c0403 authored by arnested's avatar arnested Committed by amitaibu

Issue #2358929 by arnested: Incorrect results from...

Issue #2358929 by arnested: Incorrect results from og_get_group_audience_fields() if called twice using different $group_bundle parameter?
parent c5b90d8c
......@@ -2383,7 +2383,7 @@ function og_is_group_audience_field($field_name) {
*/
function og_get_group_audience_fields($entity_type = 'user', $bundle_name = 'user', $group_type = NULL, $group_bundle = NULL) {
$return = &drupal_static(__FUNCTION__, array());
$identifier = $entity_type . ':' . $bundle_name . ':' . $group_type;
$identifier = $entity_type . ':' . $bundle_name . ':' . $group_type . ':' . $group_bundle;
if (isset($return[$identifier])) {
return $return[$identifier];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment