Fix empty value handling for some other config values
Fix empty value handling for some other config values

--- a/include/git/projectlist/ProjectListBase.class.php
+++ b/include/git/projectlist/ProjectListBase.class.php
@@ -415,19 +415,19 @@
 		if (!$this->config)
 			return;
 
-		if ($this->config->HasKey('cloneurl')) {
+		if ($this->config->GetValue('cloneurl')) {
 			$project->SetCloneUrl(GitPHP_Util::AddSlash($this->config->GetValue('cloneurl'), false) . $project->GetProject());
 		}
 
-		if ($this->config->HasKey('pushurl')) {
+		if ($this->config->GetValue('pushurl')) {
 			$project->SetPushUrl(GitPHP_Util::AddSlash($this->config->GetValue('pushurl'), false) . $project->GetProject());
 		}
 
-		if ($this->config->HasKey('bugpattern')) {
+		if ($this->config->GetValue('bugpattern')) {
 			$project->SetBugPattern($this->config->GetValue('bugpattern'));
 		}
 
-		if ($this->config->HasKey('bugurl')) {
+		if ($this->config->GetValue('bugurl')) {
 			$project->SetBugUrl($this->config->GetValue('bugurl'));
 		}
 

comments