refactoring

This commit is contained in:
Roland Gruber 2023-10-29 21:06:33 +01:00
parent e43b7f5148
commit fda88da69f
2 changed files with 1 additions and 5 deletions

View file

@ -406,7 +406,6 @@ class Ajax {
private function dnSelection(): string {
$dn = trim($_POST['dn']);
if (empty($dn) || !get_preg($dn, 'dn')) {
$dnList = $this->getDefaultDns();
return '';
}
else {
@ -414,9 +413,6 @@ class Ajax {
}
$html = $this->buildDnSelectionHtml($dnList, $dn);
$json = json_encode(['dialogData' => $html], JSON_THROW_ON_ERROR);
if ($json === false) {
return '';
}
return $json;
}

View file

@ -34,6 +34,6 @@ parameters:
- '#Parameter \#1 \$array of function array_keys expects array, mixed given.#'
- '#Argument of an invalid type mixed supplied for foreach, only iterables are supported.#'
- '#Parameter \#2 \$args of function call_user_func_array expects array<int\|string, mixed>, mixed given.#'
- '#Parameter \#1 \$input of method LAM\\AJAX\\Ajax::managePasswordChange\(\) expects array, mixed given.#'
- '#Parameter \#1 \$input of static method LAM\\AJAX\\Ajax::managePasswordChange\(\) expects array, mixed given.#'
- '#Parameter \#1 \$input of method LAM\\AJAX\\Ajax::checkPasswordStrength\(\) expects array, mixed given.#'
- '#Cannot access offset non-falsy-string on array<int\|string, string>\|object.#'