Commit 13bf05ec authored by Thomas Löffler's avatar Thomas Löffler
Browse files

[BUGFIX] Uses right variable and initializes it before

parent 7bcdcba7
Pipeline #1836 passed with stages
in 2 minutes and 44 seconds
......@@ -116,9 +116,13 @@ abstract class AbstractTerBasedController extends \T3o\TerFe2\Controller\Abstrac
throw new \Exception('No wsdl set to connect to TER server');
}
if (empty($this->terSettings['httpAuth'])) {
$this->terSettings['httpAuth'] = [];
}
// Create connection
$wsdl = $this->terSettings['wsdl'];
return $this->objectManager->get(\T3o\TerFe2\Service\Ter::class, $wsdl, $this->terAccount['username'], $this->terAccount['password'], $this->terAccount['httpAuth']);
return $this->objectManager->get(\T3o\TerFe2\Service\Ter::class, $wsdl, $this->terAccount['username'], $this->terAccount['password'], $this->terSettings['httpAuth']);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment