diff --git a/devel.module b/devel.module index fa248ebe71827a5c7c56062323ef454c5ece24f0..22fdf5d908d587026b73d6760ef196aea8afb8ef 100644 --- a/devel.module +++ b/devel.module @@ -878,9 +878,12 @@ function devel_admin_settings() { $form['devel_error_handler'] = array('#type' => 'radios', '#title' => t('Error handler'), '#default_value' => variable_get('devel_error_handler', DEVEL_ERROR_HANDLER_STANDARD), - '#options' => array(DEVEL_ERROR_HANDLER_NONE => t('None'), DEVEL_ERROR_HANDLER_STANDARD => t('Standard drupal'), DEVEL_ERROR_HANDLER_BACKTRACE => t('Backtrace')), + '#options' => array(DEVEL_ERROR_HANDLER_NONE => t('None'), DEVEL_ERROR_HANDLER_STANDARD => t('Standard drupal')), '#description' => t('Choose an error handler for your site. Backtrace prints nice debug information when an error is noticed, and you !choose. Backtrace requires the krumo library. None is a good option when stepping through the site in your debugger.', array('!krumo' => url("http://krumo.sourceforge.net"), '!choose' => l(t('choose to show errors on screen'), 'admin/settings/error-reporting'))), ); + if (has_krumo()) { + $form['devel_error_handler']['#options'][DEVEL_ERROR_HANDLER_BACKTRACE] = t('Backtrace'); + } // Save any old SMTP library if (variable_get('smtp_library', '') != '' && variable_get('smtp_library', '') != drupal_get_filename('module', 'devel')) {