diff options
Diffstat (limited to 'ext/mysql/mysql.c')
-rw-r--r-- | ext/mysql/mysql.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mysql/mysql.c b/ext/mysql/mysql.c index c34426b3de..6f0f1fec27 100644 --- a/ext/mysql/mysql.c +++ b/ext/mysql/mysql.c @@ -1433,11 +1433,11 @@ static void php3_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type) mysql_field_seek(mysql_result,0); for (mysql_field=mysql_fetch_field(mysql_result),i=0; mysql_field; mysql_field=mysql_fetch_field(mysql_result),i++) { - char *data; - int data_len; - int should_copy; - if (mysql_row[i]) { + char *data; + int data_len; + int should_copy; + if (PG(magic_quotes_runtime)) { data = _php3_addslashes(mysql_row[i],mysql_row_lengths[i],&data_len,0); should_copy = 0; |