Skip to content

Commit

Permalink
Fix #11518: Application error #1904 has no error description
Browse files Browse the repository at this point in the history
If an invalid signup captcha is entered upon signing up a new account,
application error 1904 is raised. However, the error description
accompanying the error ID of 1904 is not shown on the error page.

This problem is due to a bug within lang_get_default() from lang_api.php
where the language of a non-authenticated user is set to boolean 'false'
instead of the default language of the entire MantisBT installation.
  • Loading branch information
davidhicks committed Feb 18, 2010
1 parent 89531f0 commit 435e62b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lang_api.php
Expand Up @@ -117,11 +117,11 @@ function lang_get_default() {
}

# Otherwise fall back to default
if( null === $t_lang ) {
if( !$t_lang ) {
$t_lang = config_get_global( 'default_language' );
}

if( 'auto' == $t_lang ) {
if( $t_lang == 'auto' ) {
$t_lang = lang_map_auto();
}

Expand Down

0 comments on commit 435e62b

Please sign in to comment.