Closed (fixed)
Project:
Bibliography Module
Version:
6.x-1.15
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2011 at 23:19 UTC
Updated:
27 Jan 2011 at 21:40 UTC
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 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 commentedFixed...
http://drupal.org/cvs?commit=481058
http://drupal.org/cvs?commit=481060
http://drupal.org/cvs?commit=481062