Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
lalit774 CreditAttribution: lalit774 commentedComment #2
Grayside CreditAttribution: Grayside commentedShould be a carriage return before the else statement, and an actual patch.
Comment #3
Grayside CreditAttribution: Grayside commentedFixed with changes.
http://drupalcode.org/project/og.git/commit/fcb806a