mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'wip-mdl-46670' of https://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
aac31be316
1 changed files with 5 additions and 3 deletions
|
@ -117,9 +117,11 @@ if ($onlyuselegacyreader) {
|
||||||
if (empty($minlog) || ($minloginternalreader <= $minlog)) {
|
if (empty($minlog) || ($minloginternalreader <= $minlog)) {
|
||||||
$uselegacyreader = false;
|
$uselegacyreader = false;
|
||||||
$minlog = $minloginternalreader;
|
$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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue