Merge branch 'MDL-64543-slow-profile-patch' of https://github.com/brendanheywood/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2019-04-11 10:45:59 +02:00
commit 0f50e9cf90

View File

@ -232,7 +232,7 @@ function profiling_stop() {
}
// If we only profiled because it was potentially slow then...
if ($CFG->profilepotentialslowpage) {
if (!empty($CFG->profilepotentialslowpage)) {
$duration = microtime(true) - $CFG->profilepotentialslowpage;
if ($duration < $CFG->profilingslow) {
// Wasn't slow enough.