diff options
author | Thies C. Arntzen <thies@php.net> | 2000-01-01 16:54:55 +0000 |
---|---|---|
committer | Thies C. Arntzen <thies@php.net> | 2000-01-01 16:54:55 +0000 |
commit | 8edf2b88dc37efbe90af8b669df2730fc937e6a8 (patch) | |
tree | e43cee2251c1cfb7f4d356358eee1a09b1f11704 /ext/mysql/php_mysql.c | |
parent | e81d9aaca3d67dfeaeab096053332f368ce1ef57 (diff) | |
download | php-git-8edf2b88dc37efbe90af8b669df2730fc937e6a8.tar.gz |
tiny optimisation
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r-- | ext/mysql/php_mysql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 02e68f638a..916e7898f2 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -1247,9 +1247,9 @@ PHP_FUNCTION(mysql_result) } } - return_value->type = IS_STRING; - if (sql_row[field_offset]) { + return_value->type = IS_STRING; + if (PG(magic_quotes_runtime)) { return_value->value.str.val = php_addslashes(sql_row[field_offset],sql_row_lengths[field_offset],&return_value->value.str.len,0); } else { |