From afd2b299843874ae71d7229e3346c8cb2b9ca770 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 21 Jan 2007 21:46:55 +0000 Subject: [PATCH] fixed perfdebug warning during install --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 2d69a58032..24b6c2da6a 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2293,7 +2293,7 @@ function print_footer($course=NULL, $usercourse=NULL, $return=false) { /// Provide some performance info if required $performanceinfo = ''; - if (defined('MDL_PERF') || $CFG->perfdebug > 7) { + if (defined('MDL_PERF') || (!empty($CFG->perfdebug) and $CFG->perfdebug > 7)) { $perf = get_performance_info(); if (defined('MDL_PERFTOLOG')) { error_log("PERF: " . $perf['txt']); -- 2.39.5