From 4907efae2b63ddd74cc63bf7e15ff13ec1f70bd9 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Wed, 16 Nov 2005 02:12:12 +0000 Subject: [PATCH] Merged from MOODLE_15_STABLE: Another fix to the perf printing patch from earlier. I didn't realise that 'no' in the context of perf means 7 ;) --- lib/weblib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index bcd6d5aafe0..1c04bdfb6f7 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1971,12 +1971,12 @@ function print_footer($course=NULL, $usercourse=NULL) { /// Provide some performance info if required $performanceinfo = ''; - if (defined('MDL_PERF') || $CFG->debug > 7 || !empty($CFG->perfdebug)) { + if (defined('MDL_PERF') || $CFG->debug > 7 || $CFG->perfdebug > 7) { $perf = get_performance_info(); if (defined('MDL_PERFTOLOG')) { error_log("PERF: " . $perf['txt']); } - if (defined('MDL_PERFTOFOOT') || $CFG->debug > 7 || !empty($CFG->perfdebug)) { + if (defined('MDL_PERFTOFOOT') || $CFG->debug > 7 || $CFG->perfdebug > 7) { $performanceinfo = $perf['html']; } }