mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 19:54:46 +01:00
getFData : fix PHP warning
This commit is contained in:
parent
d069df4d6c
commit
7c43439224
1 changed files with 4 additions and 1 deletions
|
@ -60,7 +60,10 @@ function getFData($format,$data,$meth=NULL) {
|
|||
if(is_array($data)) {
|
||||
if ($meth==NULL) {
|
||||
while (preg_match($expr,$format[$i],$ch)) {
|
||||
if (is_array($data[$ch[1]])) {
|
||||
if (!isset($data[$ch[1]])) {
|
||||
$val = '';
|
||||
}
|
||||
elseif (is_array($data[$ch[1]])) {
|
||||
$val = $data[$ch[1]][0];
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue