mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +01:00
LSsearch: fix PHP warning
This commit is contained in:
parent
14bccc1e17
commit
e89d13d002
1 changed files with 8 additions and 6 deletions
|
@ -831,13 +831,15 @@ class LSsearch extends LSlog_staticLoggerClass {
|
|||
$attrs=array();
|
||||
if (isset($conf['LSformat'])) {
|
||||
$attrs=getFieldInFormat($conf['LSformat']);
|
||||
if(is_array($conf['alternativeLSformats'])) {
|
||||
foreach ($conf['alternativeLSformats'] as $format) {
|
||||
$attrs=array_merge($attrs,getFieldInFormat($format));
|
||||
if (isset($conf['alternativeLSformats'])) {
|
||||
if(is_array($conf['alternativeLSformats'])) {
|
||||
foreach ($conf['alternativeLSformats'] as $format) {
|
||||
$attrs = array_merge($attrs, getFieldInFormat($format));
|
||||
}
|
||||
}
|
||||
else {
|
||||
$attrs = array_merge($attrs, getFieldInFormat($conf['alternativeLSformats']));
|
||||
}
|
||||
}
|
||||
else {
|
||||
$attrs=array_merge($attrs,getFieldInFormat($conf['alternativeLSformats']));
|
||||
}
|
||||
if(isset($conf['formaterLSformat'])) {
|
||||
$attrs=array_unique(array_merge($attrs,getFieldInFormat($conf['formaterLSformat'])));
|
||||
|
|
Loading…
Reference in a new issue