mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2025-04-03 10:21:36 +02:00
LSsearch: fix PHP warning
This commit is contained in:
parent
14bccc1e17
commit
e89d13d002
1 changed files with 8 additions and 6 deletions
|
@ -831,6 +831,7 @@ class LSsearch extends LSlog_staticLoggerClass {
|
||||||
$attrs=array();
|
$attrs=array();
|
||||||
if (isset($conf['LSformat'])) {
|
if (isset($conf['LSformat'])) {
|
||||||
$attrs=getFieldInFormat($conf['LSformat']);
|
$attrs=getFieldInFormat($conf['LSformat']);
|
||||||
|
if (isset($conf['alternativeLSformats'])) {
|
||||||
if(is_array($conf['alternativeLSformats'])) {
|
if(is_array($conf['alternativeLSformats'])) {
|
||||||
foreach ($conf['alternativeLSformats'] as $format) {
|
foreach ($conf['alternativeLSformats'] as $format) {
|
||||||
$attrs = array_merge($attrs, getFieldInFormat($format));
|
$attrs = array_merge($attrs, getFieldInFormat($format));
|
||||||
|
@ -839,6 +840,7 @@ class LSsearch extends LSlog_staticLoggerClass {
|
||||||
else {
|
else {
|
||||||
$attrs = array_merge($attrs, getFieldInFormat($conf['alternativeLSformats']));
|
$attrs = array_merge($attrs, getFieldInFormat($conf['alternativeLSformats']));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(isset($conf['formaterLSformat'])) {
|
if(isset($conf['formaterLSformat'])) {
|
||||||
$attrs=array_unique(array_merge($attrs,getFieldInFormat($conf['formaterLSformat'])));
|
$attrs=array_unique(array_merge($attrs,getFieldInFormat($conf['formaterLSformat'])));
|
||||||
if(($key = array_search('val', $attrs)) !== false) {
|
if(($key = array_search('val', $attrs)) !== false) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue