mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LSattr_html :: password : fix countable warning in PHP 7
This commit is contained in:
parent
f3e332593e
commit
1a2d881322
1 changed files with 2 additions and 4 deletions
|
@ -43,12 +43,10 @@ class LSattr_html_password extends LSattr_html {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($data)>1) {
|
|
||||||
LSerror :: addErrorCode('LSattr_html_03','password');
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($data) {
|
if ($data) {
|
||||||
if(is_array($data)) {
|
if(is_array($data)) {
|
||||||
|
if (count($data)>1)
|
||||||
|
LSerror :: addErrorCode('LSattr_html_03','password');
|
||||||
$element -> setValue($data[0]);
|
$element -> setValue($data[0]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue