Skip to content

Commit

Permalink
Use ConfigurationOptionNotFound exception in adm_config_set.php
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhicks committed Sep 17, 2011
1 parent 4c1ec8d commit 9b45d3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/adm_config_set.php
Expand Up @@ -34,6 +34,7 @@
* @uses utility_api.php
*/

use MantisBT\Exception\Configuration\ConfigurationOptionNotFound;
use MantisBT\Exception\Field\EmptyField;

require_once( 'core.php' );
Expand Down Expand Up @@ -68,8 +69,7 @@
# make sure that configuration option specified is a valid one.
$t_not_found_value = '***CONFIG OPTION NOT FOUND***';
if ( config_get_global( $f_config_option, $t_not_found_value ) === $t_not_found_value ) {
error_parameters( $f_config_option );
trigger_error( ERROR_CONFIG_OPT_NOT_FOUND, ERROR );
throw new ConfigurationOptionNotFound( $f_config_option );
}

# make sure that configuration option specified can be stored in the database
Expand Down

0 comments on commit 9b45d3e

Please sign in to comment.