瀏覽代碼

* avoid notice

till 13 年之前
父節點
當前提交
b30f8078e4
共有 1 個文件被更改,包括 4 次插入1 次删除
  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;
     }