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.
Another small issue showing up with PHP NOTICES turned on concerns the use of the $output variable on approximately line 53 of biblio_style_classic.inc file in the biblio_style_classic() function. There is a possibility that line 53
$output .= '';
is executed without having entered the if statement just above. Hence, the variable $output can be in an uninitialized state. Adding $output= ""; just above the if statement removes this condition and hence the NOTICE statement.
Cheers!
Comments
Comment #1
ch1mjw CreditAttribution: ch1mjw commentedSame error shows in clean install of D7:
Notice: Undefined variable: output in biblio_style_classic() (line 53 of /---path---/drupal7/sites/all/modules/biblio/styles/biblio_style_classic.inc).
Comment #2
rjerome CreditAttribution: rjerome commentedFixed...
http://drupal.org/cvs?commit=481058
http://drupal.org/cvs?commit=481060
http://drupal.org/cvs?commit=481062