The following code through undefined warning line number 1546

    if (isset($form['identity']['type']['#default_value'])) {
       $max_number = variable_get('og_max_groups_' . $form['identity']['type']['#default_value'],'');
    }

This should be like following.

  if (isset($form['identity']['type']['#default_value'])) {
    $max_number = variable_get('og_max_groups_' . $form['identity']['type']['#default_value'],'');
  }else{
    $max_number='';
  }	

Comments

lalit774’s picture

Grayside’s picture

Status: Active » Needs work

Should be a carriage return before the else statement, and an actual patch.

Grayside’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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