Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Dec 29, 2024
1 parent b12077c commit c23e6f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lam/lib/account.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2017,7 +2017,7 @@ function convertUtf8ToUtf16Le($input) {
return $input;
}
$output = iconv('UTF-8', 'UTF-16LE', $input);
if (($output == '')) {
if ($output == '') {
$output = mb_convert_encoding($input, 'UTF-8', 'UTF-16LE');
}
return $output;
Expand Down
4 changes: 3 additions & 1 deletion lam/lib/modules/sambaGroupMapping.inc
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ class sambaGroupMapping extends baseModule {
$return = parent::get_uploadColumns($selectedModules, $type);
$domains = $this->getDomains();
$domainNames = [];
for ($i = 0; $i < count($domains); $i++) $domainNames[] = $domains[$i]->name;
for ($i = 0; $i < count($domains); $i++) {
$domainNames[] = $domains[$i]->name;
}
$return[] = [
'name' => 'sambaGroupMapping_domain',
'description' => _('Samba domain name'),
Expand Down

0 comments on commit c23e6f1

Please sign in to comment.