diff --git a/lib/xhprof/xhprof_moodle.php b/lib/xhprof/xhprof_moodle.php index 9a4f850d2d04a..293ffacaad1e2 100644 --- a/lib/xhprof/xhprof_moodle.php +++ b/lib/xhprof/xhprof_moodle.php @@ -865,7 +865,7 @@ public function save_run($xhprof_data, $type, $run_id = null) { $DB->insert_record('profiling', $rec); - if (PHPUNIT_TEST && !PHPUNIT_UTIL) { + if (PHPUNIT_TEST) { // Calculate export variables. $tempdir = 'profiling'; make_temp_directory($tempdir);