Add 'DISTINCT' to session list query to avoid returning repeated records (1.10.x) - refs BT#9323

1.10.x
Imanol Losada 10 years ago committed by Yannick Warnier
parent 887193e3f6
commit 7a03b6bb64
  1. 2
      main/inc/lib/sessionmanager.lib.php

@ -434,7 +434,7 @@ class SessionManager
";
}
$select = "SELECT * FROM (SELECT
$select = "SELECT DISTINCT * FROM (SELECT
IF (
(s.date_start <= '$today' AND '$today' <= s.date_end) OR
(s.nb_days_access_before_beginning > 0 AND DATEDIFF(s.date_start,'" . $today . "' " . ") <= s.nb_days_access_before_beginning) OR

Loading…
Cancel
Save