summaryrefslogtreecommitdiff
path: root/app/Core/ExternalTask
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/ExternalTask')
-rw-r--r--app/Core/ExternalTask/ExternalTaskManager.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Core/ExternalTask/ExternalTaskManager.php b/app/Core/ExternalTask/ExternalTaskManager.php
index 2ce6f106..102ec459 100644
--- a/app/Core/ExternalTask/ExternalTaskManager.php
+++ b/app/Core/ExternalTask/ExternalTaskManager.php
@@ -48,6 +48,11 @@ class ExternalTaskManager
public function getProvidersList()
{
$providers = array_keys($this->providers);
- return array_combine($providers, $providers);
+
+ if (count($providers)) {
+ return array_combine($providers, $providers);
+ }
+
+ return array();
}
}