fixed a coding bug

This commit is contained in:
Loïc Chapeaux
2001-08-18 17:46:11 +00:00
parent 53d59c65b4
commit fe1de3874b

View File

@@ -95,7 +95,7 @@ if (isset($primary_key) && ($submit_type != $strInsertAsNewRow)) {
if (!empty($$f)) { if (!empty($$f)) {
$val = implode(',', $$f); $val = implode(',', $$f);
if ($is_encoded) { if ($is_encoded) {
$val = "'" . sql_addslashes(urldecode(val)) . "'"; $val = "'" . sql_addslashes(urldecode($val)) . "'";
} else if (get_magic_quotes_gpc()) { } else if (get_magic_quotes_gpc()) {
$val = "'" . str_replace('\\"', '"', $val) . "'"; $val = "'" . str_replace('\\"', '"', $val) . "'";
} else { } else {