diff --git a/public/index.php b/public/index.php index 0ffe5e85396512b70feb5a0b9e2e6c0dd61ac54f..6967aaf957aeee755527c2d756ee1e77c3a4a29a 100644 --- a/public/index.php +++ b/public/index.php @@ -5,12 +5,14 @@ use Zend\Mvc\Service\ServiceManagerConfig; // If the XHProf profiler is enabled, set it up now: $xhprof = getenv('VUFIND_PROFILER_XHPROF'); -if (!empty($xhprof) && extension_loaded('xhprof')) { - xhprof_enable(); -} else if (extension_loaded('tideways')) { - tideways_enable(); -} else { - $xhprof = false; +if (!empty($xhprof)) { + if (extension_loaded('xhprof')) { + xhprof_enable(); + } else if (extension_loaded('tideways')) { + tideways_enable(); + } else { + $xhprof = false; + } } // Define path to application directory