This commit is contained in:
Roland Gruber 2018-04-10 19:46:41 +02:00
parent 5f01264521
commit b5a37edc98
1 changed files with 2 additions and 2 deletions

View File

@ -720,8 +720,8 @@ class lamUserList extends lamList {
}
}
// show user photos
elseif (($attribute == "jpegphoto") && (sizeof($entry[$attribute][0]) > 0)) {
if (sizeof($entry[$attribute][0]) < 100) {
elseif (($attribute == "jpegphoto") && (!empty($entry[$attribute][0]))) {
if (strlen($entry[$attribute][0]) < 100) {
// looks like we have read broken binary data, reread photo
$result = @ldap_read($_SESSION['ldap']->server(), escapeDN($entry['dn']), $attribute . "=*", array($attribute), 0, 0, 0, LDAP_DEREF_NEVER);
if ($result) {