From: Ken Youens-Clark Date: Sat, 3 May 2003 15:21:12 +0000 (+0000) Subject: Fixed error 'Use of uninitialized value in repeat (x) at blib/lib/SQL/Translator... X-Git-Tag: v0.02~150 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b8792a9734a466b0fef65f7f6281677a64e77c33;p=dbsrgits%2FSQL-Translator.git Fixed error 'Use of uninitialized value in repeat (x) at blib/lib/SQL/Translator/Producer/XML.pm line 110.' --- diff --git a/lib/SQL/Translator/Producer/XML.pm b/lib/SQL/Translator/Producer/XML.pm index d17fdd9..01727ac 100644 --- a/lib/SQL/Translator/Producer/XML.pm +++ b/lib/SQL/Translator/Producer/XML.pm @@ -1,7 +1,7 @@ package SQL::Translator::Producer::XML; # ------------------------------------------------------------------- -# $Id: XML.pm,v 1.6 2003-04-25 11:47:25 dlc Exp $ +# $Id: XML.pm,v 1.7 2003-05-03 15:21:12 kycl4rk Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark , # darren chamberlain , @@ -24,7 +24,7 @@ package SQL::Translator::Producer::XML; use strict; use vars qw[ $VERSION $XML ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.6 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.7 $ =~ /(\d+)\.(\d+)/; use SQL::Translator::Utils qw(header_comment); @@ -106,7 +106,8 @@ sub produce { # ------------------------------------------------------------------- sub aggregate { - my ( $text, $indent ) = @_; + my $text = shift or return; + my $indent = shift || 0; $XML .= (' ' x $indent) . "$text\n"; }