fixed perfdebug warning during install

This commit is contained in:
skodak
2007-01-21 21:46:55 +00:00
parent 9fc57f4c22
commit afd2b29984
+1 -1
View File
@@ -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']);