diff --git a/xhprof.admin.inc b/xhprof.admin.inc index f185acc..d3cb559 100755 --- a/xhprof.admin.inc +++ b/xhprof.admin.inc @@ -9,13 +9,13 @@ * Administrative settings form for XHProf module. */ function xhprof_admin_settings() { - $description = t('Profile requests with the xhprof php extension.'); - - if (!extension_loaded('xhprof')) { - $description = '' . t( - 'You must enable the xhprof php extension to use this feature.', - array('!url' => url('https://www.drupal.org/node/946182')) - ). ''; + if (extension_loaded('xhprof')) { + $description = t('Profile requests with the xhprof PHP extension.'); + } + else { + $description = '' . t('You must enable the xhprof PHP extension to use this feature.', array( + '!url' => url('https://www.drupal.org/node/946182'), + )) . ''; } $form['xhprof_enabled'] = array(