Skip to content

Commit

Permalink
Add 'DISTINCT' to session list query to avoid returning repeated reco…
Browse files Browse the repository at this point in the history
…rds (1.10.x) - refs BT#9323
  • Loading branch information
ilosada authored and ywarnier committed Feb 24, 2015
1 parent 887193e commit 7a03b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/lib/sessionmanager.lib.php
Expand Up @@ -434,7 +434,7 @@ public static function get_sessions_admin($options)
";
}

$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
Expand Down

0 comments on commit 7a03b6b

Please sign in to comment.