NOBUG: I hate the shut-up operator, really!
authorEloy Lafuente <stronk7@moodle.org>
Wed, 17 Nov 2010 11:02:32 +0000 (11:02 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Wed, 17 Nov 2010 11:02:32 +0000 (11:02 +0000)
admin/report/unittest/dbtest.php

index 1a66cbe..109421b 100644 (file)
@@ -69,7 +69,9 @@ for ($i=1; $i<=10; $i++) {
 
 if (!empty($tests)) {
     @ob_implicit_flush(true);
-    while(@ob_end_flush());
+    while(ob_get_level()) {
+        ob_end_flush();
+    }
 
     $covreporter = new moodle_coverage_reporter('Functional DB Tests Code Coverage Report', 'dbtest');
     $covrecorder = new moodle_coverage_recorder($covreporter);