PHP 7.2
This commit is contained in:
parent
5f01264521
commit
b5a37edc98
|
@ -720,8 +720,8 @@ class lamUserList extends lamList {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// show user photos
|
// show user photos
|
||||||
elseif (($attribute == "jpegphoto") && (sizeof($entry[$attribute][0]) > 0)) {
|
elseif (($attribute == "jpegphoto") && (!empty($entry[$attribute][0]))) {
|
||||||
if (sizeof($entry[$attribute][0]) < 100) {
|
if (strlen($entry[$attribute][0]) < 100) {
|
||||||
// looks like we have read broken binary data, reread photo
|
// 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);
|
$result = @ldap_read($_SESSION['ldap']->server(), escapeDN($entry['dn']), $attribute . "=*", array($attribute), 0, 0, 0, LDAP_DEREF_NEVER);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
|
|
Loading…
Reference in New Issue