LSattr_html :: password : fix countable warning in PHP 7

This commit is contained in:
Benjamin Renard 2019-08-06 12:31:59 +02:00
parent f3e332593e
commit 1a2d881322

View file

@ -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 {