From ef1b4a74e28936ae4b8222bee40f57931e0bbd28 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 5 Dec 2024 16:49:53 +0100 Subject: [PATCH] LSaddons::accesslog: fix PHP 8.2 compatibility --- src/includes/addons/LSaddons.accesslog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/addons/LSaddons.accesslog.php b/src/includes/addons/LSaddons.accesslog.php index cf45171e..f3323bc6 100644 --- a/src/includes/addons/LSaddons.accesslog.php +++ b/src/includes/addons/LSaddons.accesslog.php @@ -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) {