summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiwiusz Ociepa <liwiusz.ociepa@softwarelab.eu>2008-11-20 13:46:06 +0000
committerLiwiusz Ociepa <liwiusz.ociepa@softwarelab.eu>2008-11-20 13:46:06 +0000
commitf6b1583a1ad72aa540e57ad3a596dbfe824909cb (patch)
tree942153956adfdfe8d71aa9c09e11220a0185f4e3
parent5bea90044386b2d8cf15ec19ca878cb9e10223c7 (diff)
downloadredmine-f6b1583a1ad72aa540e57ad3a596dbfe824909cb.tar.gz
redmine-f6b1583a1ad72aa540e57ad3a596dbfe824909cb.zip
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
-rw-r--r--extra/svn/Redmine.pm5
1 files changed, 1 insertions, 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 {