Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(translation): Fix string concatenation in LDAP endpoint
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Mar 5, 2025
commit bc1c497abd959dc912fb59f2c99fcdd92c4269e7
3 changes: 1 addition & 2 deletions apps/user_ldap/ajax/wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@
$setParameters = [];
$configuration->setConfiguration($cfg, $setParameters);
if (!in_array($key, $setParameters)) {
\OC_JSON::error(['message' => $l->t($key.
' Could not set configuration %s', $setParameters[0])]);
\OC_JSON::error(['message' => $l->t('Could not set configuration %1$s to %2$s', [$key, $setParameters[0]])]);

Check notice

Code scanning / Psalm

DeprecatedMethod Note

The method OC_JSON::error has been marked as deprecated

Check notice

Code scanning / Psalm

PossiblyNullArrayAccess Note

Cannot access array value on possibly null variable $setParameters of type array<array-key, mixed>|null
exit;
}
$configuration->saveConfiguration();
Expand Down