diff --git a/report/participation/index.php b/report/participation/index.php index 7379f7ef0d5..b115e9c623d 100644 --- a/report/participation/index.php +++ b/report/participation/index.php @@ -117,9 +117,11 @@ if ($onlyuselegacyreader) { if (empty($minlog) || ($minloginternalreader <= $minlog)) { $uselegacyreader = false; $minlog = $minloginternalreader; - } else if (!empty($timefrom) && ($minloginternalreader > $timefrom)) { - // If timefrom is less then first record in sql_internal_reader then get record from legacy log only. - $onlyuselegacyreader = true; + } + + // If timefrom is greater then first record in sql_internal_reader then get record from sql_internal_reader only. + if (!empty($timefrom) && ($minloginternalreader < $timefrom)) { + $uselegacyreader = false; } }