From e01235caea499373d017ac9688f86f08f634b849 Mon Sep 17 00:00:00 2001 From: bohwaz Date: Tue, 18 Nov 2008 11:23:09 +0100 Subject: [PATCH] Fixed issue 57, bug dans la gestion SVN. --- AUTHORS | 3 ++- src/IDF/Scm/Svn.php | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index b4e30d6..0e57b5f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -3,4 +3,5 @@ by Loïc d'Anterroches with the support of Céondo Ltd. Much appreciated contributors: - Nicolas Lassalle \ No newline at end of file + Nicolas Lassalle + bohwaz \ No newline at end of file diff --git a/src/IDF/Scm/Svn.php b/src/IDF/Scm/Svn.php index 3cd19fd..cfbed75 100644 --- a/src/IDF/Scm/Svn.php +++ b/src/IDF/Scm/Svn.php @@ -50,7 +50,8 @@ class IDF_Scm_Svn public static function getRemoteAccessUrl($project) { $conf = $project->getConf(); - if (false !== ($url=$conf->getVal('svn_remote_url', false))) { + if (false !== ($url=$conf->getVal('svn_remote_url', false)) + && !empty($url)) { // Remote repository return $url; } @@ -71,7 +72,8 @@ class IDF_Scm_Svn { $conf = $project->getConf(); // Find the repository - if (false !== ($rep=$conf->getVal('svn_remote_url', false))) { + if (false !== ($rep=$conf->getVal('svn_remote_url', false)) + && !empty($rep)) { // Remote repository return new IDF_Scm_Svn($rep, $conf->getVal('svn_username'),