[Koha-cvs] CVS: koha/misc/translator tmpl_process.pl,1.6,1.7

Ambrose Li acli at users.sourceforge.net
Tue Feb 10 10:36:46 CET 2004


Update of /cvsroot/koha/koha/misc/translator
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31712

Modified Files:
	tmpl_process.pl 
Log Message:
Arrays are always defined. We should check its length instead.


Index: tmpl_process.pl
===================================================================
RCS file: /cvsroot/koha/koha/misc/translator/tmpl_process.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** tmpl_process.pl	9 Feb 2004 23:34:08 -0000	1.6
--- tmpl_process.pl	10 Feb 2004 09:36:44 -0000	1.7
***************
*** 31,35 ****
  # Checks for missing input and string list arguments
  
! if( !defined(@in_files) || !defined($str_file) )
  {
  	usage("You must at least specify input and string list filenames.");
--- 31,35 ----
  # Checks for missing input and string list arguments
  
! if( !@in_files || !defined($str_file) )
  {
  	usage("You must at least specify input and string list filenames.");





More information about the Koha-cvs mailing list