mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 01:39:33 +02:00
refactoring
This commit is contained in:
parent
e43b7f5148
commit
fda88da69f
2 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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.#'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue