Skip to content

Commit

Permalink
Simplify db_is_oracle() function
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Oct 16, 2013
1 parent af9ca7f commit 92b919c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions core/database_api.php
Expand Up @@ -247,18 +247,13 @@ function db_is_db2() {
}

/**
* Checks if the database driver is Oracle
* Checks if the database driver is Oracle (oci8)
* @return bool true if oracle
*/
function db_is_oracle() {
$t_db_type = config_get_global( 'db_type' );

switch( $t_db_type ) {
case 'oci8':
return true;
}

return false;
return ( $t_db_type == 'oci8' );
}

/**
Expand Down

0 comments on commit 92b919c

Please sign in to comment.