We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6220835 commit 0640056Copy full SHA for 0640056
.gitignore
@@ -1,4 +1,5 @@
1
+composer.lock
2
+vendor
3
4
/.php_cs.cache
5
.idea
-
src/Controller/ConfigController.php
@@ -262,11 +262,15 @@ public function getAction(Request $request): JsonResponse
262
$name = $request->get('name');
263
264
$configuration = Dao::getByName($name);
265
+
266
if (empty($configuration)) {
267
throw new Exception('Name does not exist.');
268
}
269
- if ($configuration && isset($configuration->configuration->general->executor)) {
270
+ if (
271
+ isset($configuration->configuration->general->executor) &&
272
+ !empty($configuration->configuration->general->executor)
273
+ ) {
274
/** @var $className IExecutor */
275
$className = $configuration->configuration->general->executor;
276
$cli = $className::getCli($name, null);
0 commit comments