must set the LONGBLOB field to NULL to remove a BLOB reference

This commit is contained in:
Marc Delisle
2010-07-31 07:07:02 -04:00
parent 3e666e94de
commit 148eab9121

View File

@@ -230,7 +230,7 @@ foreach ($loop_array as $rowcount => $where_clause) {
if (isset($remove_blob_repo) && ! isset($upload_blob_repo)) { if (isset($remove_blob_repo) && ! isset($upload_blob_repo)) {
$remove_blob_reference = $_REQUEST['remove_blob_ref_' . $key]; $remove_blob_reference = $_REQUEST['remove_blob_ref_' . $key];
if (isset($remove_blob_reference)) { if (isset($remove_blob_reference)) {
$val = "''"; $val = "NULL";
} }
} }