Skip to content

Commit

Permalink
Use case insensitive comparison to check for "Database exists" in ins…
Browse files Browse the repository at this point in the history
…tall.php.
  • Loading branch information
vboctor authored and davidhicks committed Sep 17, 2011
1 parent 8489076 commit c2c97e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/admin/install.php
Expand Up @@ -555,7 +555,7 @@ function InsertData( $p_table, $p_data ) {
$t_db_open = true;
} else {
$t_error = db_error();
if( strstr( $t_error, 'Database exists' ) ) {
if ( stristr( $t_error, 'Database exists' ) ) {
print_test_result( BAD, false, 'Database already exists? ( ' . db_error() . ' )' );
} else {
print_test_result( BAD, true, 'Does administrative user have access to create the database? ( ' . db_error() . ' )' );
Expand Down

0 comments on commit c2c97e9

Please sign in to comment.