]> git.mjollnir.org Git - moodle.git/commitdiff
fixed perfdebug warning during install
authorskodak <skodak>
Sun, 21 Jan 2007 21:46:55 +0000 (21:46 +0000)
committerskodak <skodak>
Sun, 21 Jan 2007 21:46:55 +0000 (21:46 +0000)
lib/weblib.php

index 2d69a580322ffe408259e026c4bc44f97a2e0291..24b6c2da6a70cf152321b6955fc1f3dc60e09922 100644 (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']);