Make PR #2897 pass unit tests

This commit is contained in:
Frederic Guillot
2016-12-20 20:11:17 -05:00
parent c1d07fe0ef
commit f5234a278e
2 changed files with 4 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ Improvements:
Bug fixes: Bug fixes:
* Fix compatibility issue with PHP 5.3 for array_combine function
* Fix wrong controller name on project activity page when using filters * Fix wrong controller name on project activity page when using filters
Version 1.0.35 (Dec 4, 2016) Version 1.0.35 (Dec 4, 2016)

View File

@@ -48,8 +48,11 @@ class ExternalTaskManager
public function getProvidersList() public function getProvidersList()
{ {
$providers = array_keys($this->providers); $providers = array_keys($this->providers);
if (count($providers)) { if (count($providers)) {
return array_combine($providers, $providers); return array_combine($providers, $providers);
} }
return array();
} }
} }