From f6b1583a1ad72aa540e57ad3a596dbfe824909cb Mon Sep 17 00:00:00 2001 From: Liwiusz Ociepa Date: Thu, 20 Nov 2008 13:46:06 +0000 Subject: [PATCH] If project_id is uninitialized, initialize it. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/swistak@2050 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- extra/svn/Redmine.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/extra/svn/Redmine.pm b/extra/svn/Redmine.pm index de28c71d4..45d64be8e 100644 --- a/extra/svn/Redmine.pm +++ b/extra/svn/Redmine.pm @@ -302,9 +302,6 @@ sub is_member { my $cfg = Apache2::Module::get_config(__PACKAGE__, $r->server, $r->per_dir_config); my $usrprojpass; - unless ($project_id) { - print $r->location."\n"; - } if ($cfg->{RedmineMemcache}) { $usrprojpass = $cfg->{RedmineMemcached}->get($redmine_user.":".$project_id); return 1 if (defined $usrprojpass and ($usrprojpass eq $pass_digest)); @@ -358,7 +355,7 @@ sub get_project_identifier { my $location = $r->location; my ($identifier) = $r->uri =~ m{$location/*([^/]+)}; - $identifier; + $identifier ? $identifier : " "; } sub connect_database {