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) {