Browse Source

* avoid notice

till 13 years ago
parent
commit
b30f8078e4
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/Composer/Repository/Vcs/SvnDriver.php

+ 4 - 1
src/Composer/Repository/Vcs/SvnDriver.php

@@ -236,7 +236,10 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
         }
 
         $this->svnUsername = $uri['user'];
-        $this->svnUsername = $uri['pass'];
+
+        if (isset($uri['pass']) && !empty($uri['pass'])) {
+            $this->svnPassword = $uri['pass'];
+        }
 
         $this->useAuth = true;
     }