array_combine error in PHP 5.3

This commit is contained in:
Busfreak 2016-12-20 09:40:13 +01:00
parent a4f258b26c
commit a104afa01c
1 changed files with 3 additions and 1 deletions

View File

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