diff --git a/external/footer.php b/external/footer.php index 99aad9fc..8c62625b 100755 --- a/external/footer.php +++ b/external/footer.php @@ -12,7 +12,7 @@ $xhprof_data = xhprof_disable(); $xhprof_runs = new XHProfRuns_Default(); $run_id = $xhprof_runs->save_run($xhprof_data, $profiler_namespace, null, $_xhprof); - if ($_xhprof['display'] === true && PHP_SAPI != 'cli' && isset($isAjax)) + if ($_xhprof['display'] === true && PHP_SAPI != 'cli' && !isset($isAjax)) { // url to the XHProf UI libraries (change the host name and path) $profiler_url = sprintf($_xhprof['url'].'/index.php?run=%s&source=%s', $run_id, $profiler_namespace);