mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LSaddons::accesslog: fix PHP 8.2 compatibility
This commit is contained in:
parent
0548928d2d
commit
ef1b4a74e2
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ function mapAccessLogEntry(&$entry) {
|
||||||
function sortLogEntriesByDate(&$a, &$b) {
|
function sortLogEntriesByDate(&$a, &$b) {
|
||||||
$astart = LSldap::getAttr($a['attrs'], 'reqStart');
|
$astart = LSldap::getAttr($a['attrs'], 'reqStart');
|
||||||
$bstart = LSldap::getAttr($b['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) {
|
function getEntryAccessLog($dn, $start_date=null, $include_ldapsaisie=true) {
|
||||||
|
|
Loading…
Reference in a new issue