[WTF CVS] wtf/lib/WTF/Pages Input.pm,1.14,1.15
Brought to you by:
gryphonshafer
From: Gryphon S. <gry...@us...> - 2007-01-03 21:28:49
|
Update of /cvsroot/wtf-tracker/wtf/lib/WTF/Pages In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv31925/lib/WTF/Pages Modified Files: Input.pm Log Message: Add a line to fix (silence) undefined warnings from a conditional Index: Input.pm =================================================================== RCS file: /cvsroot/wtf-tracker/wtf/lib/WTF/Pages/Input.pm,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** Input.pm 2 Jan 2007 23:39:16 -0000 1.14 --- Input.pm 3 Jan 2007 21:28:43 -0000 1.15 *************** *** 333,336 **** --- 333,340 ---- my ( $vacation, $sick, @date_data ) = ( 0, 0 ); while ( $_ = $sth->{$query_name}->fetchrow_hashref() ) { + + # ...to fix undefined warnings from next conditional + $_->{'vacation'} = ( $_->{'vacation'} ) ? 1 : 0; + if ( @date_data and # is there a previous entry |