LSaddons::accesslog: fix PHP 8.2 compatibility

This commit is contained in:
Benjamin Renard 2024-12-05 16:49:53 +01:00
parent 0548928d2d
commit ef1b4a74e2
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -133,7 +133,7 @@ function mapAccessLogEntry(&$entry) {
function sortLogEntriesByDate(&$a, &$b) {
$astart = LSldap::getAttr($a['attrs'], 'reqStart');
$bstart = LSldap::getAttr($b['attrs'], 'reqStart');
return ($astart === $bstart) ? 0 : ($astart < $bstart) ? -1 : 1;
return $astart === $bstart ? 0 : ($astart < $bstart ? -1 : 1);
}
function getEntryAccessLog($dn, $start_date=null, $include_ldapsaisie=true) {