Skip to content

Commit

Permalink
Fix mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Mar 9, 2019
1 parent 16da311 commit fbe7f07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/TestCase/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ class Module extends \SimpleSAML\Modules\Monitor\TestCaseFactory
protected function initialize(TestData $testData)
{
$this->module = $testData->getInputItem('required');
$this->available = $testData->getInputItem('available') || [];
$available = $testData->getInputItem('available');
if (!is_null($available)) {
$this->available = $available;
}
$this->parsed = explode('|', $this->module);

$this->setCategory($testData->getInputItem('type'));
Expand Down

0 comments on commit fbe7f07

Please sign in to comment.