Skip to content

Commit

Permalink
Fix #11806: code cleanup in db_prepare_string()
Browse files Browse the repository at this point in the history
Removed unnecessary cases for 'mssql' and 'odbc_mssql' from the switch
statement.
  • Loading branch information
dregad committed Jan 9, 2012
1 parent 0da3f7a commit b6c7456
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/database_api.php
Expand Up @@ -668,10 +668,6 @@ function db_prepare_string( $p_string ) {
$t_escaped = $g_db->qstr( $p_string, false );
return utf8_substr( $t_escaped, 1, utf8_strlen( $t_escaped ) - 2 );
break;
case 'mssql':
break;
case 'odbc_mssql':
break;
case 'mysql':
return mysql_real_escape_string( $p_string );
case 'mysqli':
Expand Down

0 comments on commit b6c7456

Please sign in to comment.