From: Matt S Trout Date: Wed, 12 Oct 2005 19:30:06 +0000 (+0000) Subject: - Fixed warning X-Git-Tag: 5.7099_04~1215 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=5d68b17be4061c87f93f9c53226cb53d4597eff2 - Fixed warning --- diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index 89de3ca..18ddc4b 100644 --- a/lib/Catalyst/Dispatcher.pm +++ b/lib/Catalyst/Dispatcher.pm @@ -137,9 +137,9 @@ sub forward { my $command_copy = $command; unless ( $command_copy =~ s/^\/// ) { - $command_copy = - Catalyst::Utils::class2prefix( $caller, $c->config->{case_sensitive} ) - . "/${command}"; + my $namespace = + Catalyst::Utils::class2prefix( $caller, $c->config->{case_sensitive} ) || ''; + $command_copy = "${namespace}/${command}"; } unless ( $command_copy =~ /\// ) {