LDAP: when multiline values are passed as array, do not try to preg_split them. Fixes #5521

remotes/origin/stable6
Arthur Schiwon 11 years ago
parent 6284e95e2b
commit 20f46602bd
  1. 2
      apps/user_ldap/lib/configuration.php

@ -241,7 +241,7 @@ class Configuration {
protected function setMultiLine($varname, $value) {
if(empty($value)) {
$value = '';
} else {
} else if (!is_array($value)) {
$value = preg_split('/\r\n|\r|\n/', $value);
if($value === false) {
$value = '';

Loading…
Cancel
Save