git-svn-id: http://svn.automattic.com/wordpress/trunk@2696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-07-04 06:27:04 +00:00
parent 740381afdf
commit 20ae785c4c
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class wpdb {
// ==================================================================== // ====================================================================
// Format a string correctly for safe insert under all PHP conditions // Format a string correctly for safe insert under all PHP conditions
function escape($str) { function escape($string) {
if( !$this->dbh || version_compare( phpversion(), '4.3.0' ) == '-1' ) if( !$this->dbh || version_compare( phpversion(), '4.3.0' ) == '-1' )
return mysql_escape_string( $string ); return mysql_escape_string( $string );
else else