Explorar o código

* avoid notice

till %!s(int64=13) %!d(string=hai) anos
pai
achega
b30f8078e4
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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;
     }