Skip to content

Commit

Permalink
Merge pull request #37 from Ciki/patch-2
Browse files Browse the repository at this point in the history
fix security bug
  • Loading branch information
duskohu authored Feb 27, 2020
2 parents b838df6 + 991753c commit 4fe9e6b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Controls/DependentSelectBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,15 @@ private function tryLoadItems()
}


if (count($items) > 0) {
$this->loadHttpData();
$this->loadHttpData();
$this->setItems($items)
->setPrompt($data->getPrompt() === null ? $this->getPrompt() : $data->getPrompt());

$this->setItems($items)
->setPrompt($data->getPrompt() === null ? $this->getPrompt() : $data->getPrompt());
} else {
if (count($items) === 0) {
if ($this->disabledWhenEmpty === true && !$this->isDisabled()) {
$this->setDisabled();
}
}
}
}
}
}

0 comments on commit 4fe9e6b

Please sign in to comment.