mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +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;
|
||||
}
|
||||
|
||||
if (count($data)>1) {
|
||||
LSerror :: addErrorCode('LSattr_html_03','password');
|
||||
}
|
||||
|
||||
if ($data) {
|
||||
if(is_array($data)) {
|
||||
if (count($data)>1)
|
||||
LSerror :: addErrorCode('LSattr_html_03','password');
|
||||
$element -> setValue($data[0]);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue