This commit is contained in:
Garvin Hicking
2003-04-17 15:02:49 +00:00
parent 9dff46d0ac
commit 94fc3097ac
3 changed files with 32 additions and 3 deletions

View File

@@ -160,9 +160,15 @@ if (!$check_stop) {
// but we can still handle field upload
// garvin: when in UPDATE mode, do not alter field's contents. When in INSERT
// mode, insert empty field because no values were submitted.
// mode, insert empty field because no values were submitted. If protected
// blobs where set, insert original fields content.
if (isset($fieldlist)) {
$val = "''";
if (isset($prot_row) && isset($prot_row[$key]) && $prot_row[$key] != '') {
$val = '0x' . bin2hex($prot_row[$key]);
$see_binary = true;
} else {
$val = "''";
}
} else {
unset($val);
}